Silence expected error logging.
GitOrigin-RevId: 7d8e66bac8f5b2bb40aa50d7fd7f01f0ff1eeb35
This commit is contained in:
parent
951e35e493
commit
0396d2dfff
@ -62,7 +62,8 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
|
||||
if (auth_manager != nullptr && auth_manager->is_bot()) {
|
||||
total_timeout_limit = 8;
|
||||
}
|
||||
if ((auth_manager == nullptr || !auth_manager->was_authorized()) && auth_flag == NetQuery::AuthFlag::On) {
|
||||
if ((auth_manager == nullptr || !auth_manager->was_authorized()) && auth_flag == NetQuery::AuthFlag::On &&
|
||||
tl_constructor != telegram_api::auth_exportAuthorization::ID) {
|
||||
LOG(ERROR) << "Send query before authorization: " << to_string(function);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user