summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-27 13:54:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-27 13:54:49 +0100
commitd7d26a2a5f8b1af2ff68d275410bc2d3ad0cc44d (patch)
treea8daefb67cd707824921c6c5d62b295edc0c00d3
parent82637e89647924b395c4d4cdfc835ceebbd0b661 (diff)
downloadrspamd-d7d26a2a5f8b1af2ff68d275410bc2d3ad0cc44d.tar.gz
rspamd-d7d26a2a5f8b1af2ff68d275410bc2d3ad0cc44d.zip
[Minor] Improve logging
-rw-r--r--src/libserver/rspamd_symcache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 69080eb18..bbe90ec6a 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -942,7 +942,7 @@ rspamd_symcache_save_items (struct rspamd_symcache *cache, const gchar *name)
return TRUE;
}
- msg_info_cache ("cannot open file %s, error %d, %s", path,
+ msg_err_cache ("cannot open file %s, error %d, %s", path,
errno, strerror (errno));
return FALSE;
}
@@ -957,7 +957,7 @@ rspamd_symcache_save_items (struct rspamd_symcache *cache, const gchar *name)
sizeof (rspamd_symcache_magic));
if (write (fd, &hdr, sizeof (hdr)) == -1) {
- msg_info_cache ("cannot write to file %s, error %d, %s", path,
+ msg_err_cache ("cannot write to file %s, error %d, %s", path,
errno, strerror (errno));
rspamd_file_unlock (fd, FALSE);
close (fd);
@@ -1000,7 +1000,7 @@ rspamd_symcache_save_items (struct rspamd_symcache *cache, const gchar *name)
close (fd);
if (rename (path, name) == -1) {
- msg_info_cache ("cannot rename %s -> %s, error %d, %s", path, name,
+ msg_err_cache ("cannot rename %s -> %s, error %d, %s", path, name,
errno, strerror (errno));
(void)unlink (path);
ret = FALSE;
@@ -1251,8 +1251,8 @@ rspamd_symcache_save (struct rspamd_symcache *cache)
/* Try to sync values to the disk */
if (!rspamd_symcache_save_items (cache,
cache->cfg->cache_filename)) {
- msg_err_cache ("cannot save cache data to %s",
- cache->cfg->cache_filename);
+ msg_err_cache ("cannot save cache data to %s: %s",
+ cache->cfg->cache_filename, strerror (errno));
}
}
}