]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add more logs about file maps watching
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 May 2016 12:49:39 +0000 (14:49 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 May 2016 12:49:39 +0000 (14:49 +0200)
src/libutil/map.c

index 77c806b1964688c89c24f4e033ff9e288915f9bc..ae6d59885367d88c7a4b1c89ca1e2bb746f61382 100644 (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;