Minor logging impprovements.

GitOrigin-RevId: 54f2abbd0be6d3ee5cd88ac75f14a660c0201359
This commit is contained in:
levlam 2019-05-13 19:34:23 +03:00
parent b4b9778947
commit 4f9887b4bd
4 changed files with 16 additions and 15 deletions

View File

@ -413,7 +413,8 @@ Result<uint64> Transport::read_auth_key_id(Slice message) {
Result<Transport::ReadResult> Transport::read(MutableSlice message, const AuthKey &auth_key, PacketInfo *info) {
if (message.size() < 12) {
if (message.size() < 4) {
return Status::Error(PSLICE() << "Invalid mtproto message: smaller than 4 bytes [size=" << message.size() << "]");
return Status::Error(PSLICE() << "Invalid mtproto message: smaller than 4 bytes [size = " << message.size()
<< "]");
}
int32 code = as<int32>(message.begin());

View File

@ -496,8 +496,8 @@ void SecretChatActor::send_action(tl_object_ptr<secret_api::DecryptedMessageActi
void SecretChatActor::binlog_replay_finish() {
on_his_in_seq_no_updated();
LOG(INFO) << "Binlog replay is finished with SeqNoState=" << seq_no_state_;
LOG(INFO) << "Binlog replay is finished with PfsState=" << pfs_state_;
LOG(INFO) << "Binlog replay is finished with SeqNoState " << seq_no_state_;
LOG(INFO) << "Binlog replay is finished with PfsState " << pfs_state_;
binlog_replay_finish_flag_ = true;
if (auth_state_.state == State::Ready) {
if (config_state_.my_layer < MY_LAYER) {
@ -1947,8 +1947,8 @@ void SecretChatActor::start_up() {
// auto end = Time::now();
// CHECK(end - start < 0.2);
LOG(INFO) << "In start_up with SeqNoState=" << seq_no_state_;
LOG(INFO) << "In start_up with PfsState=" << pfs_state_;
LOG(INFO) << "In start_up with SeqNoState " << seq_no_state_;
LOG(INFO) << "In start_up with PfsState " << pfs_state_;
}
void SecretChatActor::get_dh_config() {

View File

@ -864,7 +864,7 @@ void Session::connection_send_query(ConnectionInfo *info, NetQueryPtr &&net_quer
message_id, Query{message_id, std::move(net_query), main_connection_.connection_id, Time::now_cached()});
sent_queries_list_.put(status.first->second.get_list_node());
if (!status.second) {
LOG(FATAL) << "Duplicate message_id oO [message_id=" << message_id << "]";
LOG(FATAL) << "Duplicate message_id [message_id = " << message_id << "]";
}
}