Commits on Source (10)
-
Logging is not set up at this point; it wouldn't be shown unless preceded by -v/--verbose.
-
The former "default" dumping style isn't really used anywhere in Knot. The only visible difference is that RRSIGs are now logged *without* replacing their TTLs by the original non-decremented TTL values. That can avoid some confusion when reading debug logs. (Those original TTLs are still shown a bit further on each line.)
-
I suspect it was me who broke the ordering here.
-
Systemd docs say: > Those arguments must contain valid journal entries including > the variable name, e.g. "CODE_FILE=src/foo.c", [...] I tried that passing all three strings empty (without variable name) wouldn't result into the line getting logged; the suggested style does.
-
The result gets logged as a single multi-line message, so let's not repeat any prefix on (some of) those in-the-middle lines.
-
-
It's special: always on and not shown in log_groups() output. It's been quite a long fight to find how to best deal with such a special case (from user perspective; code itself is easy).
-
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
-
Partly to document changes from recent changes, partly to fix long-lasting issues in the descriptions. Hopefully it will be easier to understand now.
-
- use notice log level instead of error The failure is often a normal condition but we probably want it logged by default (after explicitly loading the module). - don't repeat the "dnssec" word twice in a row (+update docs) - docs bogus_log.frequent(): we format tables differently (old change)
Showing
- NEWS 2 additions, 1 deletionNEWS
- daemon/engine.c 1 addition, 1 deletiondaemon/engine.c
- daemon/lua/kres-gen-29.lua 2 additions, 2 deletionsdaemon/lua/kres-gen-29.lua
- daemon/lua/kres-gen-31.lua 2 additions, 2 deletionsdaemon/lua/kres-gen-31.lua
- daemon/lua/kres-gen.sh 1 addition, 1 deletiondaemon/lua/kres-gen.sh
- daemon/lua/kres.lua 6 additions, 6 deletionsdaemon/lua/kres.lua
- daemon/lua/sandbox.lua.in 2 additions, 1 deletiondaemon/lua/sandbox.lua.in
- daemon/main.c 2 additions, 1 deletiondaemon/main.c
- doc/config-logging-monitoring.rst 7 additions, 5 deletionsdoc/config-logging-monitoring.rst
- lib/log.c 5 additions, 3 deletionslib/log.c
- lib/log.h 12 additions, 5 deletionslib/log.h
- lib/utils.c 5 additions, 1 deletionlib/utils.c
- lib/utils.h 5 additions, 0 deletionslib/utils.h
- modules/bogus_log/README.rst 13 additions, 11 deletionsmodules/bogus_log/README.rst
- modules/bogus_log/bogus_log.c 1 addition, 1 deletionmodules/bogus_log/bogus_log.c
- modules/http/trace.rst 2 additions, 2 deletionsmodules/http/trace.rst
- modules/policy/README.rst 45 additions, 25 deletionsmodules/policy/README.rst
- modules/policy/policy.lua 28 additions, 12 deletionsmodules/policy/policy.lua