From a518060b42b5efa6cc3cbb2e09053c31c8c7abc7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 26 Nov 2021 15:57:43 +0000 Subject: [PATCH] more log priorities --- lib/App/MPD/Feeder.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/App/MPD/Feeder.pm b/lib/App/MPD/Feeder.pm index c1938d9..9aa1c00 100644 --- a/lib/App/MPD/Feeder.pm +++ b/lib/App/MPD/Feeder.pm @@ -205,12 +205,13 @@ method queue_songs( $num = undef ) { my $present = $mpd->send('playlist')->get // []; $present = scalar(@$present); - $log->notice( "Playlist contains $present songs. Wanted: " - . $opt->target_queue_length ); if ( $present < $opt->target_queue_length ) { + $log->info( "Playlist contains $present songs. Wanted: " + . $opt->target_queue_length ); $self->queue_songs( $opt->target_queue_length - $present ); } else { + $log->notice("Playlist contains $present songs"); $playlist_needs_filling = 0; } -- 2.39.5