From bd34dbb6d4e17eb95b3a72f93285069231815c13 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 14 Apr 2023 14:03:22 +0200 Subject: [PATCH] Log if the answer was marked variable by SyncRes and if it was stored into the packet cache (if !quiet) --- pdns/recursordist/pdns_recursor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index f6e0c6bb03..a52d3289a5 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -1802,7 +1802,9 @@ void startDoResolve(void* p) "tcpout", Logging::Loggable(sr.d_tcpoutqueries), "dotout", Logging::Loggable(sr.d_dotoutqueries), "rcode", Logging::Loggable(res), - "validationState", Logging::Loggable(sr.getValidationState())); + "validationState", Logging::Loggable(sr.getValidationState()), + "answer-is-variable", Logging::Loggable(sr.wasVariable()), + "into-packetcache", Logging::Loggable(g_packetCache && !variableAnswer && !sr.wasVariable())); } } -- 2.47.3