diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2018-05-24 15:12:01 +0200 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2018-05-24 15:12:01 +0200 |
commit | b40d20d104dd0e6c624db7b1c14c1457558e958c (patch) | |
tree | 760b386df9435e291c85093b6104c909112205a6 /src/plugins | |
parent | 449a579a29ddd706550b763211f7f5aed850d364 (diff) | |
download | rspamd-b40d20d104dd0e6c624db7b1c14c1457558e958c.tar.gz rspamd-b40d20d104dd0e6c624db7b1c14c1457558e958c.zip |
[Minor] Raltelimit - improve symbol info
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index a9fc7930f..1d22f8838 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -379,14 +379,14 @@ local function ratelimit_cb(task) elseif type(data) == 'table' and data[1] and data[1] == 1 then -- set symbol only and do NOT soft reject if settings.symbol then - task:insert_result(settings.symbol, 0.0, prefix) + task:insert_result(settings.symbol, 0.0, lim_name .. "(" .. prefix .. ")") rspamd_logger.infox(task, 'set_symbol_only: ratelimit "%s(%s)" exceeded, (%s / %s): %s (%s:%s dyn)', lim_name, prefix, bucket[2], bucket[1], data[2], data[3], data[4]) return -- set INFO symbol and soft reject elseif settings.info_symbol then - task:insert_result(settings.info_symbol, 1.0, prefix) + task:insert_result(settings.info_symbol, 1.0, lim_name .. "(" .. prefix .. ")") end rspamd_logger.infox(task, 'ratelimit "%s(%s)" exceeded, (%s / %s): %s (%s:%s dyn)', |