From 33c8fcc970102c3c34a1942e74b8e59e76e8bf79 Mon Sep 17 00:00:00 2001 From: Alexander Q Date: Thu, 11 Oct 2018 16:05:25 +0300 Subject: [PATCH] debug stuff --- src/tdlib.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tdlib.erl b/src/tdlib.erl index e1a8572..e56b4f0 100644 --- a/src/tdlib.erl +++ b/src/tdlib.erl @@ -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 @@ -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,