From 13fe5c0adc5eb97c009d1d9994638ba7a9d8fdb0 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 24 May 2018 19:54:57 +0300 Subject: [PATCH] Better logging. GitOrigin-RevId: eae79256699ffeab8c8290b2b6cbb188e3294d77 --- td/telegram/net/Session.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index ef80ff7a..93963a4c 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -112,7 +112,8 @@ Session::Session(unique_ptr callback, std::shared_ptr uint64 session_id = 0; Random::secure_bytes(reinterpret_cast(&session_id), sizeof(session_id)); auth_data_.session_id_ = session_id; - LOG(WARNING) << "Generate new session_id " << session_id << " for auth key " << auth_data_.get_auth_key().id(); + LOG(WARNING) << "Generate new session_id " << session_id << " for " << (use_pfs ? "temp " : "") + << (is_cdn ? "CDN " : "") << "auth key " << auth_data_.get_auth_key().id() << " for DC" << dc_id; callback_ = std::shared_ptr(callback.release());