diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 11:26:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 11:26:46 +0100 |
commit | dad96346a3dcc03594b330aaedeef970e8ad21a7 (patch) | |
tree | 8dc6b710e2148d5aae090ec0ebf82bee8766fddc /src | |
parent | 1c748c7439566b01ff96ae1e58b54c2e11600120 (diff) | |
download | rspamd-dad96346a3dcc03594b330aaedeef970e8ad21a7.tar.gz rspamd-dad96346a3dcc03594b330aaedeef970e8ad21a7.zip |
[Minor] Avoid logging of the error in case of settings usage
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 75c2f0a99..9b9ef7efc 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -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 { |