From: Remi Gacogne Date: Mon, 15 Feb 2021 14:37:27 +0000 (+0100) Subject: dnsdist: Add the TCP response size to the verbose message X-Git-Tag: dnsdist-1.6.0-alpha2~11^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95d97a18c26970a82e3a365b49dd578337b09b70;p=thirdparty%2Fpdns.git dnsdist: Add the TCP response size to the verbose message --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 43716a1144..efe9c1797e 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -329,7 +329,7 @@ static void handleResponseSent(std::shared_ptr& stat const auto& ids = currentResponse.d_idstate; double udiff = ids.sentTime.udiff(); g_rings.insertResponse(answertime, state->d_ci.remote, ids.qname, ids.qtype, static_cast(udiff), static_cast(currentResponse.d_buffer.size()), currentResponse.d_cleartextDH, ds->remote); - vinfolog("Got answer from %s, relayed to %s (%s), took %f usec", ds->remote.toStringWithPort(), ids.origRemote.toStringWithPort(), (state->d_ci.cs->tlsFrontend ? "DoT" : "TCP"), udiff); + vinfolog("Got answer from %s, relayed to %s (%s, %d bytes), took %f usec", ds->remote.toStringWithPort(), ids.origRemote.toStringWithPort(), (state->d_ci.cs->tlsFrontend ? "DoT" : "TCP"), currentResponse.d_buffer.size(), udiff); } switch (currentResponse.d_cleartextDH.rcode) {