From 0df68c623515ffec8b7e5058ecd588b528365933 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 27 Jul 2021 01:54:11 +0300 Subject: [PATCH] Remove debug logging for slow internal queries. --- telegram-bot-api/Query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-bot-api/Query.cpp b/telegram-bot-api/Query.cpp index e1dd27a..c8925de 100644 --- a/telegram-bot-api/Query.cpp +++ b/telegram-bot-api/Query.cpp @@ -125,7 +125,7 @@ void Query::send_request_stat() const { void Query::send_response_stat() const { auto now = td::Time::now(); - if (now - start_timestamp_ >= 100.0) { + if (now - start_timestamp_ >= 100.0 && !is_internal_) { LOG(WARNING) << "Answer too old query with code " << http_status_code_ << " and answer size " << answer_.size() << ": " << *this; }