Remove logging of some expected errors.

GitOrigin-RevId: 2a6e4704d57743da1dba740dc9333cc649c679ee
This commit is contained in:
levlam 2020-03-31 00:02:43 +03:00
parent efd22eff7e
commit f432d403e7
2 changed files with 6 additions and 2 deletions

View File

@ -133,7 +133,9 @@ class GetAllDraftsQuery : public Td::ResultHandler {
}
void on_error(uint64 id, Status status) override {
LOG(ERROR) << "Receive error for GetAllDraftsQuery: " << status;
if (!G()->close_flag()) {
LOG(ERROR) << "Receive error for GetAllDraftsQuery: " << status;
}
status.ignore();
}
};

View File

@ -170,7 +170,9 @@ class GetNearestDcQuery : public Td::ResultHandler {
}
void on_error(uint64 id, Status status) override {
LOG(ERROR) << "GetNearestDc returned " << status;
if (!G()->close_flag() && status.message() != "BOT_METHOD_INVALID") {
LOG(ERROR) << "GetNearestDc returned " << status;
}
promise_.set_error(std::move(status));
}
};