From 9fbacef1709f278397ea671eb49ea3ecc6fb64b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20Mr=C3=A1zek?= Date: Tue, 25 Mar 2025 13:25:38 +0100 Subject: [PATCH] datamodel: logging: removed debugging options --- NEWS | 10 +++++ doc/_static/config.schema.json | 27 +----------- doc/user/config-logging-debugging.rst | 44 ------------------- doc/user/config-logging-monitoring.rst | 1 - .../knot_resolver/datamodel/logging_schema.py | 18 +------- .../datamodel/templates/logging.lua.j2 | 6 --- 6 files changed, 12 insertions(+), 94 deletions(-) delete mode 100644 doc/user/config-logging-debugging.rst diff --git a/NEWS b/NEWS index 4ad5d9b29..b20ec8af4 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,13 @@ +Knot Resolver 6.0.17 (2025-mm-dd) +================================= + +Incompatible changes +-------------------- +- Removed options from declarative configuration model (YAML). + These are mostly experimental and debugging/testing options that are not useful for general users (remain in Lua): + - /logging/debugging + + Knot Resolver 6.0.16 (2025-10-30) ================================= diff --git a/doc/_static/config.schema.json b/doc/_static/config.schema.json index ec9afd439..50ef4b74c 100644 --- a/doc/_static/config.schema.json +++ b/doc/_static/config.schema.json @@ -1722,27 +1722,6 @@ ], "description": "Logging DNS requests and responses to a unix socket.", "default": false - }, - "debugging": { - "description": "Advanced debugging parameters for kresd (Knot Resolver daemon).", - "type": "object", - "properties": { - "assertion-abort": { - "type": "boolean", - "description": "Allow the process to be aborted in case it encounters a failed assertion.", - "default": false - }, - "assertion-fork": { - "type": "string", - "pattern": "^(\\d+)(us|ms|s|m|h|d)$", - "description": "Fork and abord child kresd process to obtain a coredump, while the parent process recovers and keeps running.", - "default": "5m" - } - }, - "default": { - "assertion_abort": false, - "assertion_fork": "5m" - } } }, "default": { @@ -1750,11 +1729,7 @@ "target": "stdout", "groups": null, "dnssec_bogus": false, - "dnstap": false, - "debugging": { - "assertion_abort": false, - "assertion_fork": "5m" - } + "dnstap": false } }, "monitoring": { diff --git a/doc/user/config-logging-debugging.rst b/doc/user/config-logging-debugging.rst deleted file mode 100644 index 79dd54e42..000000000 --- a/doc/user/config-logging-debugging.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. SPDX-License-Identifier: GPL-3.0-or-later - -Debugging options -================= - -In case the resolver crashes, it is often helpful to collect a coredump from -the crashed process. Configuring the system to collect coredump from crashed -process is out of the scope of this documentation, but some tips can be found -`here `_. - -Kresd uses its own mechanism for assertions. They are checks that should always -pass and indicate some weird or unexpected state if they don't. In such cases, -they show up in the log as errors. By default, the process recovers from those -states if possible, but the behaviour can be changed with the following options -to aid further debugging. - -.. option:: logging/debugging: - - .. option:: assertion-abort: true|false - - :default: false - - Allow the process to be aborted in case it encounters a failed assertion. - (Some critical conditions always lead to abortion, regardless of settings.) - - .. option:: assertion-fork: