]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add more info into error record
authorMikhail Galanin <mgalanin@mimecast.com>
Fri, 21 Sep 2018 11:30:00 +0000 (12:30 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Fri, 21 Sep 2018 11:30:00 +0000 (12:30 +0100)
src/plugins/lua/multimap.lua

index abbb57bf4294324f35ef01365108f03bb8c8f42f..cf4ed8cc51c9bfe84b7705a391798e1b579adb62 100644 (file)
@@ -942,7 +942,8 @@ local function add_multimap_rule(key, newrule)
       local selector = lua_selectors.parse_selector(rspamd_config, newrule['selector'])
 
       if not selector then
-        rspamd_logger.errx(rspamd_config, 'selector map has invalid selector')
+        rspamd_logger.errx(rspamd_config, 'selector map has invalid selector: "%1", symbol: %s',
+            newrule['selector'], newrule['symbol'])
         return nil
       end