aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-07 19:59:33 +0100
committerGitHub <noreply@github.com>2018-09-07 19:59:33 +0100
commit1e7fafd0f59b91e7a41285bb7d157fe71e4e35c3 (patch)
treebba2a2f5d13953a6c95f314742e74363d42b1c3e
parentd540364334a9571a396dc35041dbe619f6f84e16 (diff)
parent09040591d3b439733c34e323526b13f34f90014d (diff)
downloadrspamd-1e7fafd0f59b91e7a41285bb7d157fe71e4e35c3.tar.gz
rspamd-1e7fafd0f59b91e7a41285bb7d157fe71e4e35c3.zip
Merge pull request #2464 from negram/fix-fatal-log
[Minor] Add newline on fatal log, removed extra info
-rw-r--r--src/libutil/logger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 027c21da1..cd624f831 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -273,13 +273,13 @@ rspamd_log_open_priv (rspamd_logger_t *rspamd_log, uid_t uid, gid_t gid)
S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
if (rspamd_log->fd == -1) {
fprintf (stderr,
- "open_log: cannot open desired log file: %s, %s my pid: %d",
- rspamd_log->log_file, strerror (errno), getpid ());
+ "open_log: cannot open desired log file: %s, %s\n",
+ rspamd_log->log_file, strerror (errno));
return -1;
}
if (fchown (rspamd_log->fd, uid, gid) == -1) {
fprintf (stderr,
- "open_log: cannot chown desired log file: %s, %s",
+ "open_log: cannot chown desired log file: %s, %s\n",
rspamd_log->log_file, strerror (errno));
close (rspamd_log->fd);
return -1;