Browse Source

[Minor] Add more logging in map reread reason

tags/2.7
Vsevolod Stakhov 3 years ago
parent
commit
cddbd85260
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libserver/maps/map.c

+ 5
- 0
src/libserver/maps/map.c View 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;

Loading…
Cancel
Save