]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Include the address of the backend in 'relayed to' messages 11578/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Apr 2022 07:54:15 +0000 (09:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Apr 2022 07:54:15 +0000 (09:54 +0200)
Not all backends have a name.

pdns/dnsdist.cc

index d13e8f69b968f16d666a3b2e7b761416956ea967..a4805d03e4cd58304464f76454015da00d814f36 100644 (file)
@@ -1577,7 +1577,7 @@ static void processUDPQuery(ClientState& cs, LocalHolders& holders, const struct
       ++g_stats.downstreamSendErrors;
     }
 
-    vinfolog("Got query for %s|%s from %s, relayed to %s", ids->qname.toLogString(), QType(ids->qtype).toString(), proxiedRemote.toStringWithPort(), ss->getName());
+    vinfolog("Got query for %s|%s from %s, relayed to %s", ids->qname.toLogString(), QType(ids->qtype).toString(), proxiedRemote.toStringWithPort(), ss->getNameWithAddr());
   }
   catch(const std::exception& e){
     vinfolog("Got an error in UDP question thread while parsing a query from %s, id %d: %s", proxiedRemote.toStringWithPort(), queryId, e.what());