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 {