]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Further logging improvements
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jan 2020 11:55:35 +0000 (11:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jan 2020 11:55:35 +0000 (11:55 +0000)
src/libserver/re_cache.c

index 4a98ee154aa878eb289c04e13820d0402f8d3f1c..9279c5121230cc5394e3faf3c12fae345a5ee2d6 100644 (file)
@@ -1077,9 +1077,9 @@ rspamd_re_cache_exec_re (struct rspamd_task *task,
                if (rh) {
                        ret = rspamd_re_cache_process_headers_list (task, rt, re,
                                        re_class, rh, is_strong);
-                       msg_debug_re_task ("checked header regexp: %s (%s) -> %d",
-                                       rspamd_regexp_get_pattern (re),
+                       msg_debug_re_task ("checked header(%s) regexp: %s -> %d",
                                        (const char *)re_class->type_data,
+                                       rspamd_regexp_get_pattern (re),
                                        ret);
                }
                break;
@@ -1101,9 +1101,9 @@ rspamd_re_cache_exec_re (struct rspamd_task *task,
                                ret += rspamd_re_cache_process_headers_list (task, rt, re,
                                                re_class, rh, is_strong);
                        }
-                       msg_debug_re_task ("checked mime header regexp: %s (%s) -> %d",
-                                       rspamd_regexp_get_pattern (re),
+                       msg_debug_re_task ("checked mime header(%s) regexp: %s -> %d",
                                        (const char *)re_class->type_data,
+                                       rspamd_regexp_get_pattern (re),
                                        ret);
                }
                break;
@@ -1353,7 +1353,7 @@ rspamd_re_cache_exec_re (struct rspamd_task *task,
 
                        ret = rspamd_re_cache_process_regexp_data (rt, re,
                                        task, scvec, lenvec, cnt, raw);
-                       msg_debug_re_task ("checked selector (%s) regexp: %s -> %d",
+                       msg_debug_re_task ("checked selector(%s) regexp: %s -> %d",
                                        re_class->type_data,
                                        rspamd_regexp_get_pattern (re), ret);