Better INPUT_METHOD_INVALID logging.
GitOrigin-RevId: 81cff4d804281b64191faff56bc2678689c1c52d
This commit is contained in:
parent
45af3f53db
commit
54d5b70abf
@ -44,7 +44,7 @@ void NetQuery::set_error(Status status, string source) {
|
|||||||
return set_error_impl(Status::Error(200, PSLICE() << status), std::move(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()));
|
LOG(ERROR) << "Receive INPUT_METHOD_INVALID for query " << format::as_hex_dump<4>(Slice(query_.as_slice()));
|
||||||
}
|
}
|
||||||
if (status.message() == "BOT_METHOD_INVALID") {
|
if (status.message() == "BOT_METHOD_INVALID") {
|
||||||
|
Loading…
Reference in New Issue
Block a user