]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve error logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2020 17:59:12 +0000 (17:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2020 17:59:12 +0000 (17:59 +0000)
src/libserver/re_cache.c

index 2e705260e0cb77d6fa3d889e61a5a16493bf4269..c35da879d56417faed192026ef20e168690e8b22 100644 (file)
@@ -1993,7 +1993,8 @@ rspamd_re_cache_compile_timer_cb (EV_P_ ev_timer *w, int revents )
                                &cache->plt,
                                &test_db,
                                &hs_errors) != HS_SUCCESS) {
-                       msg_info_re_cache ("cannot compile %s to hyperscan, try prefilter match",
+                       msg_info_re_cache ("cannot compile %s to hyperscan: '%s', try prefilter match",
+                                       hs_errors != NULL ? hs_errors->message : "unknown error",
                                        pat);
                        hs_free_compile_error (hs_errors);