Better INPUT_METHOD_INVALID logging.

GitOrigin-RevId: 81cff4d804281b64191faff56bc2678689c1c52d
This commit is contained in:
levlam 2018-06-25 00:52:17 +03:00
parent 45af3f53db
commit 54d5b70abf

View File

@ -44,7 +44,7 @@ void NetQuery::set_error(Status status, string source) {
return set_error_impl(Status::Error(200, PSLICE() << status), std::move(source));
}
if (status.message() == "INPUT_METHOD_INVALID") {
if (begins_with(status.message(), "INPUT_METHOD_INVALID")) {
LOG(ERROR) << "Receive INPUT_METHOD_INVALID for query " << format::as_hex_dump<4>(Slice(query_.as_slice()));
}
if (status.message() == "BOT_METHOD_INVALID") {