]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add LOG_CONS flag to `openlog` 4813/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 10 Feb 2024 15:46:16 +0000 (15:46 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 10 Feb 2024 15:46:16 +0000 (15:46 +0000)
src/libserver/logger/logger_syslog.c

index 458c69f107967a8fcc5fc5672dca6c5c8db7b919..faade1d01e4ab07c1dbb73ce729f9719a697a909 100644 (file)
@@ -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;
 }