From: Damyan Ivanov Date: Fri, 26 Nov 2021 15:57:43 +0000 (+0000) Subject: more log priorities X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a518060b42b5efa6cc3cbb2e09053c31c8c7abc7;p=mpd-feeder.git more log priorities --- 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; }