mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-08-27 17:52:21 +02:00
Remove debug logging for slow internal queries.
This commit is contained in:
parent
c95ccee93f
commit
0df68c6235
@ -125,7 +125,7 @@ void Query::send_request_stat() const {
|
|||||||
|
|
||||||
void Query::send_response_stat() const {
|
void Query::send_response_stat() const {
|
||||||
auto now = td::Time::now();
|
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()
|
LOG(WARNING) << "Answer too old query with code " << http_status_code_ << " and answer size " << answer_.size()
|
||||||
<< ": " << *this;
|
<< ": " << *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user