Skip to content

Commit

Permalink
- dont crash if log file size checker fails to find the log file
Browse files Browse the repository at this point in the history
  • Loading branch information
artpar committed Feb 17, 2020
1 parent 9c4ba2c commit 80d54b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func Main(boxRoot http.FileSystem, db database.DatabaseConnection) (HostSwitch,
fileInfo, err := os.Stat(LogFileLocation)
if err != nil {
log.Errorf("Failed to stat log file: %v", err)
time.Sleep(30 * time.Minute)
continue
}

fileMbs := fileInfo.Size() / (1024 * 1024)
Expand Down

0 comments on commit 80d54b3

Please sign in to comment.