]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve debug logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Jul 2021 13:02:43 +0000 (14:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Jul 2021 13:02:43 +0000 (14:02 +0100)
src/libserver/composites/composites.cxx

index 8614f4a124e95d5d921249e7f31bb839b49622fd..1d3c13a978145c3084c34b4bf80f87decddb8ff5 100644 (file)
@@ -766,8 +766,9 @@ rspamd_composite_expr_process(void *ud, rspamd_expression_atom_t *atom) -> doubl
                }
        }
 
-       msg_debug_composites ("%s: final result for composite %s is %.4f",
+       msg_debug_composites ("%s: result for atom %s in composite %s is %.4f",
                        cd->metric_res->name,
+                       comp_atom->norm_symbol.data(),
                        cd->composite->sym.c_str(), rc);
 
        return rc;
@@ -826,6 +827,10 @@ composites_foreach_callback(gpointer key, gpointer value, void *data)
                        /* Checked bit */
                        cd->checked[comp->id * 2] = true;
 
+                       msg_debug_composites ("%s: final result for composite %s is %.4f",
+                                       cd->metric_res->name,
+                                       cd->composite->sym.c_str(), rc);
+
                        /* Result bit */
                        if (fabs(rc) > epsilon) {
                                cd->checked[comp->id * 2 + 1] = true;