From 76b3e2e8adc87106965e9d2e3b7460fd91e69dfe Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 21 Aug 2023 05:45:12 +0400 Subject: [PATCH] For some log messages changed capital letter to lowercase. --- cmd/dwelling-radio/main.go | 2 +- internal/radio/icecast.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index 27c42d5..66c1c66 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -76,7 +76,7 @@ func main() { defer func() { err := os.WriteFile(*mostListenedSongPath, radio.StoreMostListenedSong(), fs.ModePerm) if err != nil { - log.Println("Failed to store most listened song:", err) + log.Println("failed to store a most listened song:", err) } if err := srv.Stop(); err != nil { diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 308d1d7..6173057 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -190,7 +190,7 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) { if err == nil && len(songs) > 0 { lastPlayedCache = append(lastPlayedCache, songs...) } else if err != nil { - log.Fatalln("Failed to retrieve last songs:", err) + log.Fatalln("failed to retrieve last songs:", err) } } @@ -215,7 +215,7 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) { currentlyPlaying = songs[0] } } else if err != nil { - log.Println("Failed to retrieve last songs:", err) + log.Println("failed to retrieve last songs:", err) } lastPlayedCacheMutex.Unlock() } else if mask&syscall.IN_IGNORED > 0 {