Session: more aggressive debug for mtproto rpc errors

GitOrigin-RevId: efe1b894349d6542c4483a1f72c555bd29ddebd6
This commit is contained in:
Arseny Smirnov 2020-08-12 16:56:06 +03:00
parent 2add7947b7
commit 0e4e1268ac

View File

@ -766,8 +766,13 @@ void Session::on_message_result_error(uint64 id, int error_code, BufferSlice mes
return;
}
LOG(DEBUG) << "Session::on_message_result_error " << tag("id", id) << tag("error_code", error_code)
<< tag("msg", message.as_slice());
if (error_code < 0) {
LOG(WARNING) << "Session::on_message_result_error from mtproto " << tag("id", id) << tag("error_code", error_code)
<< tag("msg", message.as_slice());
} else {
LOG(DEBUG) << "Session::on_message_result_error " << tag("id", id) << tag("error_code", error_code)
<< tag("msg", message.as_slice());
}
auto it = sent_queries_.find(id);
if (it == sent_queries_.end()) {
return;