diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 18:31:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 18:31:12 +0000 |
commit | 1fe8be4863c53245b5611c83dd311f473ba524d0 (patch) | |
tree | ac3bbf378d8c1f2ea0177525bd7ad07ae3cb4a16 /src/libserver/re_cache.c | |
parent | fe8a77e7d13abe5134ad0751e628d73d872b7d45 (diff) | |
download | rspamd-1fe8be4863c53245b5611c83dd311f473ba524d0.tar.gz rspamd-1fe8be4863c53245b5611c83dd311f473ba524d0.zip |
Improve logging of hyperscan cache
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r-- | src/libserver/re_cache.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index b46a5bba9..95d64edf9 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1024,8 +1024,6 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache, G_DIR_SEPARATOR, re_class->hash); if (rspamd_re_cache_is_valid_hyperscan_file (cache, path, TRUE)) { - msg_info_re_cache ("skip already valid file for re class '%s'", - re_class->hash); fd = open (path, O_RDONLY, 00600); @@ -1036,6 +1034,14 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache, total += n; close (fd); + msg_info_re_cache ( + "skip already valid class %s(%*s) to cache %6s, %d regexps", + rspamd_re_cache_type_to_string (re_class->type), + (gint) re_class->type_len, + re_class->type_data, + re_class->hash, + n); + continue; } @@ -1195,7 +1201,7 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache, return -1; } - msg_info_re_cache ("compiled class %s(%*s) to cache %s, %d regexps", + msg_info_re_cache ("compiled class %s(%*s) to cache %6s, %d regexps", rspamd_re_cache_type_to_string (re_class->type), (gint)re_class->type_len, re_class->type_data, |