Skip to content

Commit df89aad

Browse files
authored
TD-820: Fixes routes rejection logging (#108)
1 parent 0524f82 commit df89aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/hellgate/src/hg_invoice_payment.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ maybe_log_misconfigurations({misconfiguration, _} = Error) ->
802802
maybe_log_misconfigurations(_Error) ->
803803
ok.
804804

805-
log_rejected_routes(_, [], _Varset) ->
805+
log_rejected_routes(_, [], _VS) ->
806806
ok;
807807
log_rejected_routes(all, Routes, VS) ->
808808
?LOG_MD(warning, "No route found for varset: ~p", [VS]),
@@ -1947,7 +1947,7 @@ process_routing(Action, St) ->
19471947
Ctx1 = run_routing_decision_pipeline(Ctx0, VS, St),
19481948
_ = [
19491949
log_rejected_routes(Group, RejectedRoutes, VS)
1950-
|| {Group, RejectedRoutes} <- hg_routing_ctx:rejections(Ctx0)
1950+
|| {Group, RejectedRoutes} <- hg_routing_ctx:rejections(Ctx1)
19511951
],
19521952
Events = produce_routing_events(Ctx1, Revision, St),
19531953
{next, {Events, hg_machine_action:set_timeout(0, Action)}};

0 commit comments

Comments
 (0)