Skip to content

Commit 55267ee

Browse files
committed
added logs
1 parent 0994e25 commit 55267ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/hellgate/src/hg_invoice_handler.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ handle_function_('ExplainRoute', {InvoiceID, PaymentID}, _Opts) ->
146146
hg_routing_explanation:get_explanation(get_payment_session(PaymentID, St), hg_invoice:get_payment_opts(St)).
147147

148148
ensure_started(ID, TemplateID, Params, Allocation, Mutations) ->
149+
ErrorText = "[ensure_started] Args ID ~p TemplateID ~p Params ~p ~p:~p",
150+
_ = logger:warning(ErrorText, [ID, TemplateID, Params, Allocation, Mutations]),
149151
Invoice = hg_invoice:create(ID, TemplateID, Params, Allocation, Mutations),
152+
_ = logger:warning("Inoice ~p", [Invoice]),
150153
case hg_machine:start(hg_invoice:namespace(), ID, hg_invoice:marshal_invoice(Invoice)) of
151154
{ok, _} -> ok;
152155
{error, exists} -> ok;

0 commit comments

Comments
 (0)