summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-06 13:09:32 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-06 13:09:32 +0300
commit514d83c13d1f22263c9662154e7459cdbff51c97 (patch)
tree2f2b4823f4fca3c20439ebe28efc14f570378a44 /src/util.c
parent8c09632127fb53347239f5f35c0049d8d316a607 (diff)
downloadrspamd-514d83c13d1f22263c9662154e7459cdbff51c97.tar.gz
rspamd-514d83c13d1f22263c9662154e7459cdbff51c97.zip
* Fix initialization procedure of redirector
* Do not write to log file if we cannot open it
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 589d5b5d9..4ca9a437b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -813,7 +813,7 @@ open_log (struct config_file *cfg)
case RSPAMD_LOG_FILE:
cfg->log_fd = open (cfg->log_file, O_CREAT | O_WRONLY | O_APPEND, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
if (cfg->log_fd == -1) {
- msg_err ("open_log: cannot open desired log file: %s, %s", cfg->log_file, strerror (errno));
+ fprintf (stderr, "open_log: cannot open desired log file: %s, %s", cfg->log_file, strerror (errno));
return -1;
}
return 0;