From 3e40b90c1f443bad865d54ea488c8d12a063fd2d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 7 May 2015 13:04:08 +0100 Subject: [PATCH] Fix log message for unknown rules with scores. --- src/libserver/symbols_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.39.5