]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: don't print log messages with lower severity
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 19 Nov 2019 13:21:53 +0000 (14:21 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 19 Nov 2019 13:43:01 +0000 (14:43 +0100)
client.c

index 89f306837d8affee2c803878f7f058477944cc58..3f3363c66fbb59b05f0f0544c2fae8a7c8373f6d 100644 (file)
--- a/client.c
+++ b/client.c
@@ -88,6 +88,9 @@ void LOG_Message(LOG_Severity severity,
 {
   va_list ap;
 
+  if (severity < log_min_severity)
+    return;
+
   va_start(ap, format);
   vfprintf(stderr, format, ap);
   putc('\n', stderr);