Browse Source

[Minor] Add more logs about file maps watching

tags/1.3.0
Vsevolod Stakhov 8 years ago
parent
commit
8215ede121
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/libutil/map.c

+ 3
- 0
src/libutil/map.c View File

@@ -784,9 +784,12 @@ rspamd_map_file_check_callback (gint fd, short what, void *ud)
if (stat (data->filename, &st) != -1 &&
(st.st_mtime > data->st.st_mtime || data->st.st_mtime == -1)) {
/* File was modified since last check */
msg_info_map ("old mtime is %t, new mtime is %t for map file %s",
data->st.st_mtime, st.st_mtime, data->filename);
memcpy (&data->st, &st, sizeof (struct stat));
periodic->need_modify = TRUE;
periodic->cur_backend = 0;

rspamd_map_periodic_callback (-1, EV_TIMEOUT, periodic);

return;

Loading…
Cancel
Save