From: Vsevolod Stakhov Date: Fri, 16 Jul 2021 13:02:43 +0000 (+0100) Subject: [Minor] Improve debug logging X-Git-Tag: 3.0~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4864356682637d4bede27a618e4da0097162cb5;p=rspamd.git [Minor] Improve debug logging --- diff --git a/src/libserver/composites/composites.cxx b/src/libserver/composites/composites.cxx index 8614f4a12..1d3c13a97 100644 --- a/src/libserver/composites/composites.cxx +++ b/src/libserver/composites/composites.cxx @@ -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;