mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 13:37:41 +03:00
Don't leak old os.File on log rotation
This commit is contained in:
parent
e9f998fb54
commit
522537e07e
1 changed files with 2 additions and 0 deletions
|
@ -96,5 +96,7 @@ func reinitLogging() {
|
|||
return
|
||||
}
|
||||
|
||||
out.Close()
|
||||
|
||||
log.DefaultLogger.Out = newOut
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue