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;
}
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);
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;
/* 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));
}
}
}