diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-07 19:59:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 19:59:33 +0100 |
commit | 1e7fafd0f59b91e7a41285bb7d157fe71e4e35c3 (patch) | |
tree | bba2a2f5d13953a6c95f314742e74363d42b1c3e | |
parent | d540364334a9571a396dc35041dbe619f6f84e16 (diff) | |
parent | 09040591d3b439733c34e323526b13f34f90014d (diff) | |
download | rspamd-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.c | 6 |
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; |