From df0b2a73076d9168698413d1322d680420d38016 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 25 Nov 2016 21:53:42 +0200 Subject: [Minor] Use new API for debug logging in Lua plugins --- src/plugins/lua/trie.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/lua/trie.lua') 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 -- cgit v1.2.3