aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-27 15:34:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-27 15:34:59 +0100
commit4ace607202e5f90a7f654539ea7a671d59a107b1 (patch)
tree82d7b03b7b3741782773644967b046e95de31b7c /src
parent52b516b6aa93fef63979404bd581abf4ec587feb (diff)
downloadrspamd-4ace607202e5f90a7f654539ea7a671d59a107b1.tar.gz
rspamd-4ace607202e5f90a7f654539ea7a671d59a107b1.zip
Classify errors are non-fatal errors.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/task.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 9c17bd3c5..ebd78b4a9 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -397,6 +397,7 @@ rspamd_task_process (struct rspamd_task *task, guint stages)
{
gint st;
gboolean ret = TRUE;
+ GError *stat_error = NULL;
/* Avoid nested calls */
if (task->flags & RSPAMD_TASK_FLAG_PROCESSING) {
@@ -430,9 +431,10 @@ rspamd_task_process (struct rspamd_task *task, guint stages)
break;
case RSPAMD_TASK_STAGE_CLASSIFIERS:
- if (rspamd_stat_classify (task, task->cfg->lua_state, &task->err) ==
+ if (rspamd_stat_classify (task, task->cfg->lua_state, &stat_error) ==
RSPAMD_STAT_PROCESS_ERROR) {
- ret = FALSE;
+ msg_err ("classify error: %e", stat_error);
+ g_error_free (stat_error);
}
break;