Skip to content

Commit

Permalink
debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lattenwald committed Oct 11, 2018
1 parent 5cfa32f commit 33c8fcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tdlib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ handle_info({received, {ok, Msg}}, State=#state{extra = Extra, handlers = Handle
false -> null
end,

lager:warn("Received msg: ~p", [Msg]),

case SyncReply of
null ->
case lists:keyfind(<<"@type">>, 1, Data) of
Expand All @@ -310,6 +312,8 @@ handle_info({received, {ok, Msg}}, State=#state{extra = Extra, handlers = Handle
sets:to_list(Handlers) );

{ReplyTo, TRef} ->
lager:warn("SyncReply: ~p", [SyncReply]),
lager:warn("ReplyTo: ~p, TRef: ~p", [ReplyTo, TRef]),
timer:cancel(TRef),
gen_server:reply(ReplyTo, Data)
end,
Expand Down

0 comments on commit 33c8fcc

Please sign in to comment.