From 290293766f6d06be77c5eed0bc6b4f5e7fe2e5ef Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 29 Mar 2021 21:43:50 +0300 Subject: [PATCH] Improve error message. --- td/telegram/NotificationManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index d6d942d7a..82e5ca570 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -1858,7 +1858,9 @@ void NotificationManager::remove_notification(NotificationGroupId group_id, Noti bool is_total_count_changed = false; if ((!have_all_notifications && is_permanent) || (have_all_notifications && is_found)) { if (group_it->second.total_count == 0) { - LOG(ERROR) << "Total notification count became negative in " << group_id << " after removing " << notification_id; + LOG(ERROR) << "Total notification count became negative in " << group_it->second << " after removing " + << notification_id << " with is_permanent = " << is_permanent << ", is_found = " << is_found + << ", force_update = " << force_update << " from " << source; } else { group_it->second.total_count--; is_total_count_changed = true;