Improve fatal error logging.
This commit is contained in:
parent
1d476d15b8
commit
5508285804
@ -68,8 +68,8 @@ void MultiTimeout::cancel_timeout(int64 key) {
|
|||||||
void MultiTimeout::update_timeout() {
|
void MultiTimeout::update_timeout() {
|
||||||
if (items_.empty()) {
|
if (items_.empty()) {
|
||||||
LOG(DEBUG) << "Cancel timeout of " << get_name();
|
LOG(DEBUG) << "Cancel timeout of " << get_name();
|
||||||
CHECK(timeout_queue_.empty());
|
LOG_CHECK(timeout_queue_.empty()) << get_name();
|
||||||
CHECK(Actor::has_timeout());
|
LOG_CHECK(Actor::has_timeout()) << get_name();
|
||||||
Actor::cancel_timeout();
|
Actor::cancel_timeout();
|
||||||
} else {
|
} else {
|
||||||
LOG(DEBUG) << "Set timeout of " << get_name() << " in " << timeout_queue_.top_key() - Time::now_cached();
|
LOG(DEBUG) << "Set timeout of " << get_name() << " in " << timeout_queue_.top_key() - Time::now_cached();
|
||||||
|
Loading…
Reference in New Issue
Block a user