Cleanup spruious logs
This commit is contained in:
parent
a5e201c290
commit
431ef985bc
5
main.go
5
main.go
@ -410,18 +410,14 @@ func fetchHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create the new download
|
// create the new download
|
||||||
log.Print("creating")
|
|
||||||
newDL := download.NewDownload(url[0], configService.Config)
|
newDL := download.NewDownload(url[0], configService.Config)
|
||||||
log.Print("adding")
|
|
||||||
dm.AddDownload(newDL)
|
dm.AddDownload(newDL)
|
||||||
log.Print("done")
|
|
||||||
|
|
||||||
t, err := template.ParseFS(webFS, "web/layout.tmpl", "web/popup.html")
|
t, err := template.ParseFS(webFS, "web/layout.tmpl", "web/popup.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Print("lock dl")
|
|
||||||
newDL.Lock.Lock()
|
newDL.Lock.Lock()
|
||||||
defer newDL.Lock.Unlock()
|
defer newDL.Lock.Unlock()
|
||||||
|
|
||||||
@ -431,6 +427,5 @@ func fetchHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
log.Print("unlock dl because rendered")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user