]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Log listening addresses and version at the 'info' level 11711/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Jun 2022 13:12:20 +0000 (15:12 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 20 Jun 2022 13:12:20 +0000 (15:12 +0200)
These are really informations, not warnings.

pdns/dnsdist.cc

index 8ea5f3c22883cbc7617fe7201bc5c907a61109f2..d10c0302f231941cbc47b3c98188d05cfb225c2c 100644 (file)
@@ -2129,16 +2129,16 @@ static void setUpLocalBind(std::unique_ptr<ClientState>& cs)
     SListen(cs->tcpFD, cs->tcpListenQueueSize);
 
     if (cs->tlsFrontend != nullptr) {
-      warnlog("Listening on %s for TLS", cs->local.toStringWithPort());
+      infolog("Listening on %s for TLS", cs->local.toStringWithPort());
     }
     else if (cs->dohFrontend != nullptr) {
-      warnlog("Listening on %s for DoH", cs->local.toStringWithPort());
+      infolog("Listening on %s for DoH", cs->local.toStringWithPort());
     }
     else if (cs->dnscryptCtx != nullptr) {
-      warnlog("Listening on %s for DNSCrypt", cs->local.toStringWithPort());
+      infolog("Listening on %s for DNSCrypt", cs->local.toStringWithPort());
     }
     else {
-      warnlog("Listening on %s", cs->local.toStringWithPort());
+      infolog("Listening on %s", cs->local.toStringWithPort());
     }
   }
 
@@ -2535,7 +2535,7 @@ int main(int argc, char** argv)
       }
     }
 
-    warnlog("dnsdist %s comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2", VERSION);
+    infolog("dnsdist %s comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2", VERSION);
 
     vector<string> vec;
     std::string acls;