remove redundant logging
This commit is contained in:
parent
8a1fabf91a
commit
8a7210ad56
1 changed files with 0 additions and 2 deletions
|
|
@ -96,10 +96,8 @@ func (srv *Service) BindRoutes(group *gin.RouterGroup) {
|
||||||
ctx.String(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError))
|
ctx.String(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Printf("Waiting on title file lock...")
|
|
||||||
srv.titleFileMutex.Lock()
|
srv.titleFileMutex.Lock()
|
||||||
defer srv.titleFileMutex.Unlock()
|
defer srv.titleFileMutex.Unlock()
|
||||||
log.Printf("Got it!")
|
|
||||||
file, err := os.OpenFile(srv.cfg.TitleFilePath, os.O_RDWR | os.O_CREATE | os.O_TRUNC, 0)
|
file, err := os.OpenFile(srv.cfg.TitleFilePath, os.O_RDWR | os.O_CREATE | os.O_TRUNC, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to open title file: %v", err)
|
log.Printf("Failed to open title file: %v", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue