X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/7b615b3c71825b5b229b78509a16db37e1d3f38d..db43bd0e4ff4a2aee5f6a6610a4ad78c357f96b0:/server/files.go?ds=sidebyside 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()