X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/a098a4fcbfe0649cfd9d171e59e822a4bd1b2ec4..8a42be0580469b8fb15fc3369724332f063dca4a:/server/files.go diff --git a/server/files.go b/server/files.go index b452997..963be99 100644 --- a/server/files.go +++ b/server/files.go @@ -27,15 +27,13 @@ var files AudioFiles func InitAudioFiles(path string) { files.changeWait = make(chan bool) files.path = path - log.Println("initing audio files") files.Refresh() - log.Println("done") } func (r *AudioFiles) Refresh() { entries, err := os.ReadDir(r.path) if err != nil { - log.Println("couldn't read dir", r.path) + log.Println("Couldn't read dir", r.path) return } r.filesMutex.Lock() @@ -44,7 +42,7 @@ func (r *AudioFiles) Refresh() { for _, file := range entries { f, err := os.Open(filepath.Join(r.path, file.Name())) if err != nil { - log.Println("couldn't open", file.Name()) + log.Println("Couldn't open", file.Name()) return } hash := sha256.New()