Fix double close error with log rotation (#5960)
This commit is contained in:
parent
7be74816a2
commit
0fb9040a64
|
@ -99,9 +99,6 @@ func (w *FileWriter) Close() (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = w.current.Close(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
w.current = nil
|
w.current = nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue