diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index 0bc938b9c..2c7764df5 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -518,10 +518,11 @@ Status SessionConnection::on_slice_packet(const MsgInfo &info, Slice packet) { } auto get_update_description = [&] { - return PSTRING() << "update from " << get_name() << " active for " << (Time::now() - created_at_) - << " seconds in container " << container_id_ << " from session " << auth_data_->get_session_id() - << " with message_id " << info.message_id << ", main_message_id = " << main_message_id_ - << ", seq_no = " << info.seq_no << " and original size = " << info.size; + return PSTRING() << "update from " << get_name() << " with auth key " << auth_data_->get_auth_key().id() + << " active for " << (Time::now() - created_at_) << " seconds in container " << container_id_ + << " from session " << auth_data_->get_session_id() << " with message_id " << info.message_id + << ", main_message_id = " << main_message_id_ << ", seq_no = " << info.seq_no + << " and original size = " << info.size; }; // It is an update... I hope. diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index c6b587182..abb22ede1 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -574,7 +574,8 @@ Status Session::on_pong() { Timestamp::at(current_info_->created_at_ + MIN_CONNECTION_ACTIVE).is_in_past()) { Status status; if (!unknown_queries_.empty()) { - status = Status::Error(PSLICE() << "No state info for " << unknown_queries_.size() << " queries for " + status = Status::Error(PSLICE() << "No state info for " << unknown_queries_.size() << " queries from auth key " + << auth_data_.get_auth_key().id() << " for " << format::as_time(Time::now() - current_info_->created_at_)); } if (!sent_queries_list_.empty()) { @@ -582,8 +583,9 @@ Status Session::on_pong() { auto query = Query::from_list_node(it); if (Timestamp::at(query->sent_at_ + MAX_QUERY_TIMEOUT).is_in_past()) { if (status.is_ok()) { - status = Status::Error(PSLICE() << "No answer for " << query->query << " for " - << format::as_time(Time::now() - query->sent_at_)); + status = + Status::Error(PSLICE() << "No answer from auth key " << auth_data_.get_auth_key().id() << " for " + << query->query << " for " << format::as_time(Time::now() - query->sent_at_)); } query->ack = false; } else {