summaryrefslogtreecommitdiffstats
path: root/src/libserver/maps/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-28 10:35:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-28 10:35:42 +0000
commitcddbd852602fce81486e7c71cac17f544e2c2071 (patch)
treecd6da169ed25950a5b118c360d73f45c1fa54f36 /src/libserver/maps/map.c
parent1174a5b2213dfdd524b307bfec6471d728bc7a53 (diff)
downloadrspamd-cddbd852602fce81486e7c71cac17f544e2c2071.tar.gz
rspamd-cddbd852602fce81486e7c71cac17f544e2c2071.zip
[Minor] Add more logging in map reread reason
Diffstat (limited to 'src/libserver/maps/map.c')
-rw-r--r--src/libserver/maps/map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/maps/map.c b/src/libserver/maps/map.c
index 86ecc5d95..079ca1cc9 100644
--- a/src/libserver/maps/map.c
+++ b/src/libserver/maps/map.c
@@ -1680,6 +1680,11 @@ rspamd_map_common_http_callback (struct rspamd_map *map,
/* Read cached data */
if (check) {
if (data->last_modified < data->cache->last_modified) {
+ msg_info_map ("need to reread cached map triggered by %s "
+ "(%d our modify time, %d cached modify time)",
+ bk->uri,
+ (int)data->last_modified,
+ (int)data->cache->last_modified);
periodic->need_modify = TRUE;
/* Reset the whole chain */
periodic->cur_backend = 0;