Remove logging of some expected errors.
GitOrigin-RevId: 2a6e4704d57743da1dba740dc9333cc649c679ee
This commit is contained in:
parent
efd22eff7e
commit
f432d403e7
@ -133,7 +133,9 @@ class GetAllDraftsQuery : public Td::ResultHandler {
|
||||
}
|
||||
|
||||
void on_error(uint64 id, Status status) override {
|
||||
if (!G()->close_flag()) {
|
||||
LOG(ERROR) << "Receive error for GetAllDraftsQuery: " << status;
|
||||
}
|
||||
status.ignore();
|
||||
}
|
||||
};
|
||||
|
@ -170,7 +170,9 @@ class GetNearestDcQuery : public Td::ResultHandler {
|
||||
}
|
||||
|
||||
void on_error(uint64 id, Status status) override {
|
||||
if (!G()->close_flag() && status.message() != "BOT_METHOD_INVALID") {
|
||||
LOG(ERROR) << "GetNearestDc returned " << status;
|
||||
}
|
||||
promise_.set_error(std::move(status));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user