Avoid logging startup messages twice

This commit is contained in:
Sebastian Hahn 2015-02-06 21:17:48 +01:00
parent 16cf1679e7
commit 6d8b614729
2 changed files with 10 additions and 0 deletions

4
changes/bug13993 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (logging):
- Don't log messages to stdout twice when starting up. Fixes bug
13993; bugfix on 0.2.6.1-alpha.

View File

@ -1062,6 +1062,12 @@ flush_log_messages_from_startup(void)
if (! logfile_wants_message(lf, msg->severity, msg->domain))
continue;
/* We configure a temporary startup log that goes to stdout, so we
* shouldn't replay to stdout/stderr*/
if (lf->fd == STDOUT_FILENO || lf->fd == STDERR_FILENO) {
continue;
}
logfile_deliver(lf, msg->fullmsg, strlen(msg->fullmsg), msg->msg,
msg->domain, msg->severity, &callbacks_deferred);
}