commit 0889381: [Minor] Improve error logging
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Nov 13 18:00:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-11-13 17:59:12 +0000
URL: https://github.com/rspamd/rspamd/commit/0889381b971b2a18e867074986fc4a7f36e791a5 (HEAD -> master)
[Minor] Improve error logging
---
src/libserver/re_cache.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 2e705260e..c35da879d 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -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);
More information about the Commits
mailing list