• Marek Vavruša's avatar
    lib: added support for trace_log for verbose messages · 393b738a
    Marek Vavruša authored
    The `QRVERBOSE` macro uses the `query` pointer to find out whether the
    request has trace log enabled. If it does, it uses trace log to log verbose messages using that callback (regardless of whether verbose mode is set or not).
    
    This required changing of structure printing functions to formatting functions returning textual representation of the objects (dname, rrset, pkt).
    This is potentially slower as creates heap objects, but it doesn't happen
    in the hotpath so it doesn't really matter for verbose logs.
    393b738a
rplan.c 7.66 KB