From cb6478111db97d78e2a9a9b58e9fa490a11435b3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 10 Feb 2024 15:46:16 +0000 Subject: [PATCH] [Minor] Add LOG_CONS flag to `openlog` --- src/libserver/logger/logger_syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/logger/logger_syslog.c b/src/libserver/logger/logger_syslog.c index 458c69f10..faade1d01 100644 --- a/src/libserver/logger/logger_syslog.c +++ b/src/libserver/logger/logger_syslog.c @@ -43,7 +43,7 @@ rspamd_log_syslog_init(rspamd_logger_t *logger, struct rspamd_config *cfg, priv = g_malloc0(sizeof(*priv)); priv->log_facility = cfg->log_facility; - openlog("rspamd", LOG_NDELAY | LOG_PID, priv->log_facility); + openlog("rspamd", LOG_CONS | LOG_NDELAY | LOG_PID, priv->log_facility); return priv; } -- 2.39.5