aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c
index bbad7f1dac..e8cc30c312 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -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);
}