]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: suppress info messages with -p option
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Mar 2021 11:21:52 +0000 (12:21 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 4 Mar 2021 11:36:23 +0000 (12:36 +0100)
Log (to stderr) only warnings and higher when printing the
configuration to suppress the "chronyd starting" message.

main.c

diff --git a/main.c b/main.c
index 3290d33d14269d2d06033b3ec0ff9227f0d0c168..74e27067e0100e183ead02f184d301f9c473efd0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -492,6 +492,7 @@ int main
         user_check = 0;
         nofork = 1;
         system_log = 0;
+        log_severity = LOGS_WARN;
         break;
       case 'P':
         sched_priority = parse_int_arg(optarg);