mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
feat(GODT-2691): close logrus output file on exit.
This commit is contained in:
@ -86,6 +86,14 @@ func (r *Rotator) Write(p []byte) (int, error) {
|
||||
return n, nil
|
||||
}
|
||||
|
||||
func (r *Rotator) Close() error {
|
||||
if r.wc != nil {
|
||||
return r.wc.Close()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rotator) rotate() error {
|
||||
if r.wc != nil {
|
||||
_ = r.wc.Close()
|
||||
|
||||
Reference in New Issue
Block a user