aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-07 13:04:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-07 13:04:08 +0100
commit3e40b90c1f443bad865d54ea488c8d12a063fd2d (patch)
tree4f32b33ffe82fd0f54f34d65c4a58b7a39d8bc40
parent498f929d0d3317c5a0fca0735f67a164998ada0f (diff)
downloadrspamd-3e40b90c1f443bad865d54ea488c8d12a063fd2d.tar.gz
rspamd-3e40b90c1f443bad865d54ea488c8d12a063fd2d.zip
Fix log message for unknown rules with scores.
-rw-r--r--src/libserver/symbols_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index b5684efac..fec045e19 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -760,9 +760,11 @@ validate_cache (struct symbols_cache *cache,
}
if (!res) {
msg_warn (
- "symbol '%s' is registered in metric but not found in cache",
+ "symbol '%s' has its score defined but there is no "
+ "corresponding rule registered",
cur->data);
if (strict) {
+ g_list_free (metric_symbols);
return FALSE;
}
}