diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-16 14:49:39 +0200 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-16 14:49:39 +0200 |
commit | 8215ede12147a104079b1c0b2fc77f2e0ed5a88b (patch) | |
tree | 5947bee6a160aa72bcec529a7d929f6d66096816 /src | |
parent | aee712c585fa612fccadcead230ec8923f5b29e3 (diff) | |
download | rspamd-8215ede12147a104079b1c0b2fc77f2e0ed5a88b.tar.gz rspamd-8215ede12147a104079b1c0b2fc77f2e0ed5a88b.zip |
[Minor] Add more logs about file maps watching
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 77c806b19..ae6d59885 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -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; |