From: Remi Gacogne Date: Fri, 6 Nov 2020 10:31:28 +0000 (+0100) Subject: dnsdist: Add the query payload size to the verbose log over TCP X-Git-Tag: dnsdist-1.6.0-alpha0~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9677%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Add the query payload size to the verbose log over TCP That makes debugging much easier. --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 71c669202f..048339929a 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -851,7 +851,7 @@ static void sendQueryToBackend(std::shared_ptr& stat } } - vinfolog("Got query for %s|%s from %s (%s), relayed to %s", state->d_ids.qname.toLogString(), QType(state->d_ids.qtype).getName(), state->d_ci.remote.toStringWithPort(), (state->d_ci.cs->tlsFrontend ? "DoT" : "TCP"), ds->getName()); + vinfolog("Got query for %s|%s from %s (%s, %d bytes), relayed to %s", state->d_ids.qname.toLogString(), QType(state->d_ids.qtype).getName(), state->d_ci.remote.toStringWithPort(), (state->d_ci.cs->tlsFrontend ? "DoT" : "TCP"), state->d_buffer.size(), ds->getName()); handleDownstreamIO(state, now); return;