Browse Source

[Minor] Avoid logging of the error in case of settings usage

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
dad96346a3
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/lua/lua_task.c

+ 5
- 1
src/lua/lua_task.c View File

@@ -2022,7 +2022,7 @@ lua_task_insert_result_common (lua_State * L, struct rspamd_scan_result *result,
}
}
}
else {
else if (task->settings == NULL) {
lua_pushfstring (L, "insertion failed for %s", symbol_name);
rspamd_lua_traceback (L);

@@ -2030,6 +2030,10 @@ lua_task_insert_result_common (lua_State * L, struct rspamd_scan_result *result,

lua_pop (L, 2); /* Traceback string + error string */
}
else {
/* Usually denied by settings */

}

}
else {

Loading…
Cancel
Save