]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add more logging in map reread reason
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2020 10:35:42 +0000 (10:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2020 10:35:42 +0000 (10:35 +0000)
src/libserver/maps/map.c

index 86ecc5d95fdc926c6538a425eae1039fa23d829d..079ca1cc969b999c1aca09597cea2fec8a972c62 100644 (file)
@@ -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;