pull/508/head
hunterlong 2020-04-19 02:05:39 -07:00
parent 835bb5e618
commit 615577a00b
1 changed files with 5 additions and 3 deletions

View File

@ -194,9 +194,11 @@ func checkVerboseMode() {
// CloseLogs will close the log file correctly on shutdown
func CloseLogs() {
ljLogger.Rotate()
Log.Writer().Close()
ljLogger.Close()
if ljLogger != nil {
ljLogger.Rotate()
Log.Writer().Close()
ljLogger.Close()
}
sentry.Flush(5 * time.Second)
}