]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Log if the answer was marked variable by SyncRes and if it was stored into
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 14 Apr 2023 12:03:22 +0000 (14:03 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 14 Apr 2023 13:33:22 +0000 (15:33 +0200)
the packet cache (if !quiet)

pdns/recursordist/pdns_recursor.cc

index f6e0c6bb0303e9049eb894df638382b440ed3ade..a52d3289a5b8d31cbb2375de8b36887e2fdb37c8 100644 (file)
@@ -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()));
       }
     }