commit 9e44086: [Minor] Slightly improve log message

Vsevolod Stakhov vsevolod at rspamd.com
Sat Sep 10 13:14:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-09-10 13:03:26 +0100
URL: https://github.com/rspamd/rspamd/commit/9e440866b5605e039be7d943ce6d0527372d3e1a

[Minor] Slightly improve log message

---
 src/libserver/symcache/symcache_impl.cxx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libserver/symcache/symcache_impl.cxx b/src/libserver/symcache/symcache_impl.cxx
index 8d16f1c7c..b2f6004aa 100644
--- a/src/libserver/symcache/symcache_impl.cxx
+++ b/src/libserver/symcache/symcache_impl.cxx
@@ -1218,8 +1218,10 @@ auto symcache::get_max_timeout(std::vector<std::pair<double, const cache_item *>
 			if (it->priority != saved_priority) {
 				accumulated_timeout += max_timeout;
 				added_timeout += max_timeout;
-				msg_debug_cache_lambda("added %.2f to the timeout (%.2f) as the priority has changed (%d -> %d)",
-						max_timeout, accumulated_timeout, saved_priority, it->priority);
+				msg_debug_cache_lambda("added %.2f to the timeout (%.2f) as the priority has changed (%d -> %d);"
+									   "symbol: %s",
+						max_timeout, accumulated_timeout, saved_priority, it->priority,
+						it->symbol.c_str());
 				if (!seen_items.contains(max_elt)) {
 					elts.emplace_back(max_timeout, max_elt);
 					seen_items.insert(max_elt);


More information about the Commits mailing list