]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
policy trace-logging improvements
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 6 Aug 2021 17:17:18 +0000 (19:17 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 10 Aug 2021 18:16:58 +0000 (20:16 +0200)
commit54ab3f78bb30d615323dce27ac2ba82a921eafc4
tree5f6248450be934c9a7aa83775650fbbb3bc6be9c
parent0fdc194076fa4469467842322eb156fbda668b61
policy trace-logging improvements

The logs can be triggered from policy actions, in per-request fashion:
- they're on LOG_DEBUG level but always sent, regardless of log config
- those messages will show double group tags: "[reqdbg][foo   ]"
  (but they lack proper meta-data - about location of the log's origin)
- reqdbg is *in addition* to normal logs, so the lines may be duplicated
  if that's how the logging was configured
modules/policy/policy.lua