From 6b3b1900372bc9c954b9f9ccc424a5c8f7ce81df Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 31 Oct 2018 15:09:25 +0300 Subject: [PATCH] Add logging to Client::receive. GitOrigin-RevId: 2cb36c61e186a0e598dd5ce3a330d1a0baa884c3 --- td/telegram/Client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index 330400d9..3673887d 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -157,11 +157,13 @@ class Client::Impl final { } Response receive(double timeout) { + VLOG(td_requests) << "Begin to wait for updates with timeout " << timeout; auto is_locked = receive_lock_.exchange(true); CHECK(!is_locked); auto response = receive_unlocked(timeout); is_locked = receive_lock_.exchange(false); CHECK(is_locked); + LOG(td_requests) << "End to wait for updates, returning object " << response.id << ' ' << response.object.get(); return response; }