aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor/td
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-03-08 15:30:13 +0300
committerlevlam <levlam@telegram.org>2023-03-08 15:30:13 +0300
commit5508285804f86e617d3dc927b88aee6cbd2a21f1 (patch)
tree8b81bf75c5e4a8a14c7e78552d17e4fd2abd0228 /tdactor/td
parent1d476d15b8b0b476283f9a4fbf4f5170a643eec5 (diff)
Improve fatal error logging.
Diffstat (limited to 'tdactor/td')
-rw-r--r--tdactor/td/actor/MultiTimeout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdactor/td/actor/MultiTimeout.cpp b/tdactor/td/actor/MultiTimeout.cpp
index 59b0fc216..4799098f7 100644
--- a/tdactor/td/actor/MultiTimeout.cpp
+++ b/tdactor/td/actor/MultiTimeout.cpp
@@ -68,8 +68,8 @@ void MultiTimeout::cancel_timeout(int64 key) {
void MultiTimeout::update_timeout() {
if (items_.empty()) {
LOG(DEBUG) << "Cancel timeout of " << get_name();
- CHECK(timeout_queue_.empty());
- CHECK(Actor::has_timeout());
+ LOG_CHECK(timeout_queue_.empty()) << get_name();
+ LOG_CHECK(Actor::has_timeout()) << get_name();
Actor::cancel_timeout();
} else {
LOG(DEBUG) << "Set timeout of " << get_name() << " in " << timeout_queue_.top_key() - Time::now_cached();