From ef23b96c94adf0e82ffce9927574190ca5642fde Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 8 Apr 2021 16:49:00 +0300 Subject: [PATCH] Improve log message. --- telegram-bot-api/Client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 22ae961..a4ffeb3 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -7897,9 +7897,9 @@ void Client::do_get_updates(int32 offset, int32 limit, int32 timeout, PromisedQu } } if (need_warning) { - LOG(WARNING) << "Found " << updates.size() << " updates out of " << total_size << " + " << updates.size() - << " after last getUpdates call " << (td::Time::now() - previous_get_updates_finish_time_) - << " seconds ago"; + LOG(WARNING) << "Found " << updates.size() << " updates out of " << (total_size + updates.size()) + << " after last getUpdates call " << (query->start_timestamp() - previous_get_updates_finish_time_) + << " seconds ago in " << (td::Time::now() - query->start_timestamp()) << " seconds"; } else { LOG(DEBUG) << "Found " << updates.size() << " updates out of " << total_size << " from " << from; }