From 2c9119cd208445b35ea9cbf411ff4d508fef72bd Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 29 Sep 2017 22:37:49 +0200 Subject: [PATCH] Improve --quiet=false output for recursor to include DNSSEC and more timing details With this PR, pdns_recursor non-quiet logging shows DNSSEC status and adds time spent waiting for network, plus total time spent before answer was sent. This quantifies the internal overhead. --- pdns/pdns_recursor.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 9be6586872..1875668f0b 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1222,16 +1222,23 @@ static void startDoResolve(void *p) } } } - + float spent=makeFloat(sr.getNow()-dc->d_now); if(!g_quiet) { L<getTid()<<"/"<numProcesses()<<"] answer to "<<(dc->d_mdp.d_header.rd?"":"non-rd ")<<"question '"<d_mdp.d_qname<<"|"<d_mdp.d_qtype); L<<"': "<ancount)<<" answers, "<arcount)<<" additional, took "<