aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-13 17:59:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-13 17:59:12 +0000
commit0889381b971b2a18e867074986fc4a7f36e791a5 (patch)
tree0277a8c8c9afa1dc93b45011cb746b6c81d32bf6 /src/libserver/re_cache.c
parent7ac071f3f5644c2da0816cf3b8223894675c5fc7 (diff)
downloadrspamd-0889381b971b2a18e867074986fc4a7f36e791a5.tar.gz
rspamd-0889381b971b2a18e867074986fc4a7f36e791a5.zip
[Minor] Improve error logging
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r--src/libserver/re_cache.c3
1 files changed, 2 insertions, 1 deletions
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);