diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 16:30:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 16:30:36 +0100 |
commit | 117c578d05b9a7183513d93fb8a82e6493589f77 (patch) | |
tree | 204e51ab96b13bc58257410f3df11f0a08990bd0 /src/lua | |
parent | b3c00f448a26f21ecb7092eee5e261461126f0aa (diff) | |
download | rspamd-117c578d05b9a7183513d93fb8a82e6493589f77.tar.gz rspamd-117c578d05b9a7183513d93fb8a82e6493589f77.zip |
Improve logging for pre-result.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index bc834476b..d91774d1b 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -795,16 +795,17 @@ lua_task_set_pre_result (lua_State * L) mres->score = mres->metric->actions[action].score; } task->pre_result.action = action; - msg_info ("<%s>: set pre-result according to lua pre-filter to %s", - task->message_id, rspamd_action_to_str (action)); if (lua_gettop (L) >= 3) { action_str = rspamd_mempool_strdup (task->task_pool, luaL_checkstring (L, 3)); task->pre_result.str = action_str; } else { - task->pre_result.str = NULL; + task->pre_result.str = "unknown"; } + msg_info ("<%s>: set pre-result to %s: '%s'", + task->message_id, rspamd_action_to_str (action), + task->pre_result.str); } } return 0; |