From: Aleš Mrázek Date: Tue, 25 Mar 2025 12:25:38 +0000 (+0100) Subject: datamodel: logging: removed debugging options X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e593beb30ea0bfc028ece4a6ac6377a3c4fe429;p=thirdparty%2Fknot-resolver.git datamodel: logging: removed debugging options --- diff --git a/NEWS b/NEWS index ae95ca416..e76b20765 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,12 @@ Improvements ------------ - reduce validation strictness for domain names (#934, !1727) +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.15 (2025-07-17) ================================= diff --git a/doc/_static/config.schema.json b/doc/_static/config.schema.json index 88e11901d..4fc731f77 100644 --- a/doc/_static/config.schema.json +++ b/doc/_static/config.schema.json @@ -1617,27 +1617,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": { @@ -1645,11 +1624,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: