From 470563c289edb92096129992362095f5f3bf4b31 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 6 Jun 2022 17:13:56 +0300 Subject: [PATCH] Improve log messages. --- td/telegram/net/Session.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 655086071..e89e821c9 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -575,10 +575,10 @@ void Session::on_closed(Status status) { raw_connection->close(); if (status.is_error()) { - LOG(WARNING) << "Session with " << sent_queries_.size() << " pending requests was closed: " << status << " " - << current_info_->connection_->get_name(); + LOG(WARNING) << "Session connection with " << sent_queries_.size() << " pending requests was closed: " << status + << ' ' << current_info_->connection_->get_name(); } else { - LOG(INFO) << "Session with " << sent_queries_.size() << " pending requests was closed: " << status << " " + LOG(INFO) << "Session connection with " << sent_queries_.size() << " pending requests was closed: " << status << ' ' << current_info_->connection_->get_name(); }