From: Otto Moerbeek Date: Mon, 8 Apr 2024 11:14:21 +0000 (+0200) Subject: dnsdist: syslog should be enabled by default X-Git-Tag: rec-5.1.0-alpha1~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14050%2Fhead;p=thirdparty%2Fpdns.git dnsdist: syslog should be enabled by default 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. --- diff --git a/pdns/dnsdistdist/dolog.cc b/pdns/dnsdistdist/dolog.cc index 55a92b8868..ab5c538f94 100644 --- a/pdns/dnsdistdist/dolog.cc +++ b/pdns/dnsdistdist/dolog.cc @@ -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 {