From: Pieter Lexis Date: Tue, 15 Mar 2016 10:51:43 +0000 (+0100) Subject: Add a disable-syslog setting X-Git-Tag: auth-3.4.9^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3850%2Fhead;p=thirdparty%2Fpdns.git Add a disable-syslog setting This allows the use of e.g. the `Type=simple` in systemd and prevents the double logging issue. --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 45ab21dc06..b9c2165de5 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -78,6 +78,7 @@ void declareArguments() ::arg().set("version-string","PowerDNS version in packets - full, anonymous, powerdns or custom")="full"; ::arg().set("control-console","Debugging switch - don't use")="no"; // but I know you will! ::arg().set("loglevel","Amount of logging. Higher is more. Do not set below 3")="4"; + ::arg().set("disable-syslog","Disable logging to syslog, useful when running inside a supervisor that logs stdout")="no"; ::arg().set("default-soa-name","name to insert in the SOA record if none set in the backend")="a.misconfigured.powerdns.server"; ::arg().set("default-soa-mail","mail address to insert in the SOA record if none set in the backend")=""; ::arg().set("distributor-threads","Default number of Distributor (backend) threads to start")="3"; diff --git a/pdns/logger.cc b/pdns/logger.cc index 5e6fd2b8b0..6357bffa62 100644 --- a/pdns/logger.cc +++ b/pdns/logger.cc @@ -50,7 +50,7 @@ void Logger::log(const string &msg, Urgency u) clog<