From 6ab3b65babc7966fcdd6a02e3f9efd65fd568948 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 27 Nov 2021 09:05:30 +0200 Subject: [PATCH] more log priority adjustments --- lib/App/MPD/Feeder.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/App/MPD/Feeder.pm b/lib/App/MPD/Feeder.pm index 9aa1c00..b6c8203 100644 --- a/lib/App/MPD/Feeder.pm +++ b/lib/App/MPD/Feeder.pm @@ -181,7 +181,7 @@ method update_db( $force = undef ) { $new_songs, $new_artists, $new_albums ) = $self->db->finish_update; - $log->info( + $log->notice( "Updated data about $song_count songs (including $new_songs new), " . "$total_artists artists (including $new_artists new) " @@ -206,12 +206,12 @@ method queue_songs( $num = undef ) { $present = scalar(@$present); if ( $present < $opt->target_queue_length ) { - $log->info( "Playlist contains $present songs. Wanted: " + $log->notice( "Playlist contains $present songs. Wanted: " . $opt->target_queue_length ); $self->queue_songs( $opt->target_queue_length - $present ); } else { - $log->notice("Playlist contains $present songs"); + $log->info("Playlist contains $present songs"); $playlist_needs_filling = 0; } @@ -240,7 +240,7 @@ method queue_songs( $num = undef ) { push @paths, $path; } - $log->info( "Adding " . join( ', ', map {"«$_»"} @paths ) ); + $log->notice( "Adding " . join( ', ', map {"«$_»"} @paths ) ); # MPD needs raw bytes utf8::encode($_) for @paths; -- 2.39.5