Hi folks,

I was going to submit a patch to add an option to enable debug output for
chronyd without disabling daemon mode (as '-dd' does), but it looks like
this is already possible with the (undocumented) '-L -1' option. This
proposed patch adds documentation for this feature.

Thanks,
Luke

>From 861753cac78dc62fab5159c9c58a10e0612e1ac5 Mon Sep 17 00:00:00 2001
From: Luke Valenta <lvale...@cloudflare.com>
Date: Fri, 20 Oct 2023 11:54:41 -0400
Subject: [PATCH] Document '-L -1' option for debug logging output

---
 doc/chronyd.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/chronyd.adoc b/doc/chronyd.adoc
index e44aac5..b4e382c 100644
--- a/doc/chronyd.adoc
+++ b/doc/chronyd.adoc
@@ -72,9 +72,9 @@ terminal.

 *-L* _level_::
 This option specifies the minimum severity level of messages to be written
to
-the log file, syslog, or terminal. The following levels can be specified:
-0 (informational), 1 (warning), 2 (non-fatal error), and 3 (fatal error).
The
-default value is 0.
+the log file, syslog, or terminal. The following levels can be specified:
-1
+(debug, if compiled with enabled support for debugging), 0
(informational), 1
+(warning), 2 (non-fatal error), and 3 (fatal error). The default value is
0.

 *-p*::
 When run in this mode, *chronyd* will print the configuration and exit. It
will
-- 
2.39.3 (Apple Git-145)

-- 
Luke Valenta
Systems Engineer - Research

Reply via email to