Don't leak old os.File on log rotation

This commit is contained in:
fox.cpp 2019-11-12 23:29:49 +03:00
parent e9f998fb54
commit 522537e07e
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C

View file

@ -96,5 +96,7 @@ func reinitLogging() {
return
}
out.Close()
log.DefaultLogger.Out = newOut
}