From: Damyan Ivanov Date: Sat, 27 Nov 2021 07:05:30 +0000 (+0200) Subject: more log priority adjustments X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=6ab3b65babc7966fcdd6a02e3f9efd65fd568948;p=mpd-feeder.git more log priority adjustments --- 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;