From 89c8bf819cc39ade9d2556d8c0e9c75008137f10 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 Jun 2018 00:12:34 +0300 Subject: [PATCH] Move some logging from INFO to DEBUG, GitOrigin-RevId: f56140a9c03fcb0af8c8ecc381b3e111febf616f --- td/telegram/files/FileManager.cpp | 2 +- td/telegram/net/Session.cpp | 6 +++--- tdnet/td/net/HttpConnectionBase.cpp | 4 ++-- tdnet/td/net/SslFd.cpp | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index ebb38182..aea94e22 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -33,7 +33,7 @@ namespace td { -static int VERBOSITY_NAME(update_file) = VERBOSITY_NAME(INFO); +static int VERBOSITY_NAME(update_file) = VERBOSITY_NAME(DEBUG); FileNode *FileNodePtr::operator->() const { return get(); diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 70fb8b7f..dba69996 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -451,7 +451,7 @@ void Session::on_session_created(uint64 unique_id, uint64 first_id) { // send updatesTooLong to force getDifference LOG(INFO) << "new_session_created " << unique_id << " " << first_id; if (is_main_) { - LOG(INFO) << "Sending updatesTooLong to force getDifference"; + LOG(DEBUG) << "Sending updatesTooLong to force getDifference"; telegram_api::updatesTooLong too_long_; auto storer = create_storer(too_long_); BufferSlice packet(storer.size()); @@ -624,7 +624,7 @@ Status Session::on_message_result_ok(uint64 id, BufferSlice packet, size_t origi } auth_data_.on_api_response(); Query *query_ptr = &it->second; - VLOG(net_query) << "return query result " << query_ptr->query; + VLOG(net_query) << "Return query result " << query_ptr->query; cleanup_container(id, query_ptr); mark_as_known(id, query_ptr); @@ -1196,7 +1196,7 @@ void Session::loop() { double wakeup_in = 0; if (wakeup_at != 0) { wakeup_in = wakeup_at - Time::now_cached(); - LOG(INFO) << "Wakeup After " << wakeup_in; + LOG(DEBUG) << "Wakeup after " << wakeup_in; set_timeout_at(wakeup_at); } // TODO: write proper condition.. diff --git a/tdnet/td/net/HttpConnectionBase.cpp b/tdnet/td/net/HttpConnectionBase.cpp index 087ee5b7..c5dc9a95 100644 --- a/tdnet/td/net/HttpConnectionBase.cpp +++ b/tdnet/td/net/HttpConnectionBase.cpp @@ -109,7 +109,7 @@ void HttpConnectionBase::loop() { on_error(Status::Error(res.error().public_message())); } else if (res.ok() == 0) { state_ = State::Write; - LOG(INFO) << "Send query to handler"; + LOG(DEBUG) << "Send query to handler"; live_event(); on_query(std::move(current_query_)); } else { @@ -138,7 +138,7 @@ void HttpConnectionBase::loop() { state_ = State::Close; } if (can_close(stream_connection_)) { - LOG(INFO) << "Can close the connection"; + LOG(DEBUG) << "Can close the connection"; state_ = State::Close; } if (state_ == State::Close) { diff --git a/tdnet/td/net/SslFd.cpp b/tdnet/td/net/SslFd.cpp index f6f75572..e422b185 100644 --- a/tdnet/td/net/SslFd.cpp +++ b/tdnet/td/net/SslFd.cpp @@ -193,7 +193,6 @@ Result SslFd::process_ssl_error(int ret, int *mask) { #else auto openssl_errno = errno; int error = SSL_get_error(ssl_handle_, ret); - LOG(INFO) << "SSL ERROR: " << ret << " " << error; switch (error) { case SSL_ERROR_NONE: LOG(ERROR) << "SSL_get_error returned no error";