]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Emit a debug message even if reducing the debug level to zero
authorMike Brady <mikebrady@eircom.net>
Sat, 10 Mar 2018 19:34:29 +0000 (19:34 +0000)
committerMike Brady <mikebrady@eircom.net>
Sat, 10 Mar 2018 19:34:29 +0000 (19:34 +0000)
dbus-diagnostics.c

index a45a86d7701d109ceaf138c85d6d4d06b6a2b9bd..1bd48aaf544a419d6ce6797e74ada00eb6bfd1d9 100644 (file)
@@ -60,6 +60,8 @@ gboolean notify_verbosity_callback(ShairportSyncDiagnostics *skeleton,
                                             __attribute__((unused)) gpointer user_data) {
   gint th = shairport_sync_diagnostics_get_verbosity(skeleton);
   if ((th >= 0) && (th <= 3)) {
+    if (th==0)
+      debug(1, ">> log verbosity set to %d.", th);
     debuglev = th;
     debug(1, ">> log verbosity set to %d.", th);
   } else {