Commit 393b738a authored by Committed by Marek Vavruša
lib: added support for trace_log for verbose messages
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.
Showing with 236 additions and 131 deletions