Emit a debug message even if reducing the debug level to zero

This commit is contained in:
Mike Brady
2018-03-10 19:34:29 +00:00
parent 1c0c6f5d59
commit 825a29d89b
+2
View 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 {