From 5325e69269e1dc0b90ade30cba9a3f47337572db Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 26 Apr 2022 09:54:15 +0200 Subject: [PATCH] dnsdist: Include the address of the backend in 'relayed to' messages Not all backends have a name. --- pdns/dnsdist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index d13e8f69b9..a4805d03e4 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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()); -- 2.47.2