diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index 7fb7ed295..579257917 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -743,7 +743,7 @@ void SessionConnection::send_crypto(const Storer &storer, uint64 quick_ack_token Result SessionConnection::send_query(BufferSlice buffer, bool gzip_flag, int64 message_id, uint64 invoke_after_id, bool use_quick_ack) { - LOG_CHECK(mode_ != Mode::HttpLongPoll) << "LongPoll connection is only for http_wait"; + CHECK(mode_ != Mode::HttpLongPoll); // "LongPoll connection is only for http_wait" if (message_id == 0) { message_id = auth_data_->next_message_id(Time::now_cached()); } diff --git a/test/secret.cpp b/test/secret.cpp index 9349a24c4..8b3505922 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -204,7 +204,7 @@ static void downcast_call(TlBufferParser &p, F &&f) { case messages_sendEncryptedService::ID: return f(*make_tl_object(p)); default: - LOG_CHECK(0) << id; + LOG(ERROR) << "Unknown constructor " << id; UNREACHABLE(); } } diff --git a/test/tdclient.cpp b/test/tdclient.cpp index b4f850c18..7a91113c3 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -236,7 +236,8 @@ class DoAuthentication : public Task { on_authorization_ready(); return; default: - LOG_CHECK(false) << "Unexpected authorization state " << to_string(authorization_state); + LOG(ERROR) << "Unexpected authorization state " << to_string(authorization_state); + UNREACHABLE(); } send_query(std::move(function), [](auto res) { LOG_CHECK(res->get_id() == td_api::ok::ID) << to_string(res); }); }