add logs for discogs initial load error

This commit is contained in:
David 2022-04-02 17:26:49 -04:00
parent 88d9c4f2f8
commit 04aadf1d10

View File

@ -133,7 +133,12 @@ func main() {
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)
} }
go discogsCache.FlushCache(context.Background()) go func() {
err := discogsCache.FlushCache(context.Background())
if err != nil {
log.Printf("error loading discogs content: %v", err)
}
}()
r := &Router{ r := &Router{
static: f, static: f,
lib: lib, lib: lib,