aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/trie.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-25 21:53:42 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-25 23:01:53 +0200
commitdf0b2a73076d9168698413d1322d680420d38016 (patch)
treee04979dd8f575945ace2bfd146a30a6d26da21e4 /src/plugins/lua/trie.lua
parentc22f1ab8bb3cf373d515ae79888a6f5de87eca7b (diff)
downloadrspamd-df0b2a73076d9168698413d1322d680420d38016.tar.gz
rspamd-df0b2a73076d9168698413d1322d680420d38016.zip
[Minor] Use new API for debug logging in Lua plugins
Diffstat (limited to 'src/plugins/lua/trie.lua')
-rw-r--r--src/plugins/lua/trie.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/trie.lua b/src/plugins/lua/trie.lua
index 1be5b1d98..7786753c7 100644
--- a/src/plugins/lua/trie.lua
+++ b/src/plugins/lua/trie.lua
@@ -16,6 +16,7 @@ limitations under the License.
-- Trie is rspamd module designed to define and operate with suffix trie
+local N = 'trie'
local rspamd_logger = require "rspamd_logger"
local rspamd_trie = require "rspamd_trie"
local fun = require "fun"
@@ -55,7 +56,7 @@ local function tries_callback(task)
local pattern = patterns[idx]
if param['multi'] or not matched[pattern] then
- rspamd_logger.debugx(task, "<%1> matched pattern %2 at pos %3",
+ rspamd_logger.debugm(N, task, "<%1> matched pattern %2 at pos %3",
task:get_message_id(), pattern, pos)
task:insert_result(param['symbol'], 1.0, type)
if not param['multi'] then