]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: syslog should be enabled by default 14050/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Apr 2024 11:14:21 +0000 (13:14 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Apr 2024 11:14:21 +0000 (13:14 +0200)
Regression introduced with the logging refactoring of dnsdist.

In rel/dnsdist-1.8.x: https://github.com/PowerDNS/pdns/blob/4d5bb67a2a75f9d88894e7dfc42bbbebfda297b0/pdns/dnsdist.cc#L103 :

bool g_syslog{true};

In master and 1.9.x the newly intrdoduced LoggingConfiguration::s_syslog
is inited to false.

This does not matter using the default systemd unit file as it disables syslog:

ExecStart=@bindir@/dnsdist --supervised --disable-syslog

but it does matter for non-systemd cases.

pdns/dnsdistdist/dolog.cc

index 55a92b886880ab98fa494d5731ef2c34dbf8d7dc..ab5c538f94f94b59a41f8cd4bbbfc618fccea173 100644 (file)
@@ -32,7 +32,7 @@ std::string LoggingConfiguration::s_structuredLevelPrefix{"prio"};
 LoggingConfiguration::TimeFormat LoggingConfiguration::s_structuredTimeFormat{LoggingConfiguration::TimeFormat::Numeric};
 bool LoggingConfiguration::s_structuredLogging{false};
 bool LoggingConfiguration::s_logTimestamps{false};
-bool LoggingConfiguration::s_syslog{false};
+bool LoggingConfiguration::s_syslog{true};
 
 namespace
 {