From 44bc3d5f08d1901e5df39c15065059ca13f6d451 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 21 Jun 2018 22:14:52 +0300 Subject: [PATCH] Add debug to send_query. GitOrigin-RevId: 2ac237e8288335acad7f9f8f0a3ab6ef686210b7 --- td/mtproto/SessionConnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index ac4798048..0f7c466cc 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -712,6 +712,8 @@ Result SessionConnection::send_query(BufferSlice buffer, bool gzip_flag, send_before(Time::now_cached() + QUERY_DELAY); } to_send_.push_back(Query{message_id, seq_no, std::move(buffer), gzip_flag, invoke_after_id, use_quick_ack}); + VLOG(mtproto) << "Invoke query " << message_id << " of size " << to_send_.back().packet.size() << " with seq_no " + << seq_no << " after " << invoke_after_id << (use_quick_ack ? " with quick ack" : ""); return message_id; }