]> git.ktnx.net Git - mpd-feeder.git/commitdiff
more log priorities
authorDamyan Ivanov <dmn@debian.org>
Fri, 26 Nov 2021 15:57:43 +0000 (15:57 +0000)
committerDamyan Ivanov <dmn@debian.org>
Fri, 26 Nov 2021 15:57:43 +0000 (15:57 +0000)
lib/App/MPD/Feeder.pm

index c1938d90f3fd2658fad2bd39d32e24251520fb3c..9aa1c008e0f43d28b42936ba86b47d28f864f49e 100644 (file)
@@ -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;
         }