aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r--src/libserver/re_cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 1d2f6522f..1b591a81c 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -2291,10 +2291,18 @@ rspamd_re_cache_is_valid_hyperscan_file (struct rspamd_re_cache *cache,
len = strlen (path);
if (len < sizeof (rspamd_cryptobox_HASHBYTES + 3)) {
+ if (!silent) {
+ msg_err_re_cache ("cannot open hyperscan cache file %s: too short filename",
+ path);
+ }
return FALSE;
}
if (memcmp (path + len - 3, ".hs", 3) != 0) {
+ if (!silent) {
+ msg_err_re_cache ("cannot open hyperscan cache file %s: not ending with .hs",
+ path);
+ }
return FALSE;
}