From 3f57fb0ac665eea9373efe72b966f291eb5e9432 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Fri, 26 Mar 2021 14:14:01 +0100 Subject: [PATCH] doc: mention DEBUG_* policies for debugging requests --- modules/http/trace.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/http/trace.rst b/modules/http/trace.rst index e77142f59..4fb60a3e0 100644 --- a/modules/http/trace.rst +++ b/modules/http/trace.rst @@ -5,8 +5,16 @@ Debugging a single request ========================== -.. tip:: Policies :data:`policy.DEBUG_CACHE_MISS` and :func:`policy.DEBUG_IF` can also be used to - debug specific requests. +Using query policies +-------------------- + +Query policies :any:`policy.DEBUG_ALWAYS`, :any:`policy.DEBUG_CACHE_MISS` or +:any:`policy.DEBUG_IF` can be used to enable verbose logging for selected +subdomains or queries matching specific conditions. Please refer to their +documentation for usage. + +Using HTTP module +----------------- The :ref:`http module ` provides ``/trace`` endpoint which allows to trace various aspects of the request execution. The basic mode allows you to resolve a query -- 2.47.2