Revert "Check f.Sync() errors before closing logfile"
This reverts commit f3919db8c4.
This commit is contained in:
@@ -54,9 +54,8 @@ func main() {
|
||||
// if logging to a file, ensure it is closed when the program terminates
|
||||
defer func() {
|
||||
if f, ok := rootLogger.Out.(*os.File); ok {
|
||||
if err := f.Sync(); err != nil {
|
||||
f.Close()
|
||||
}
|
||||
f.Sync()
|
||||
f.Close()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user