]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Avoid logging of the error in case of settings usage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2020 10:26:46 +0000 (11:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jun 2020 10:26:46 +0000 (11:26 +0100)
src/lua/lua_task.c

index 75c2f0a9982a1e7508e0037f2532be205ac9ae65..9b9ef7efc6c50cf3a13d1ec27be27bff03957144 100644 (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 {