Revert "Check f.Sync() errors before closing logfile"

This reverts commit f3919db8c4.
This commit is contained in:
Willy Goiffon
2020-07-16 12:16:35 +02:00
parent f3919db8c4
commit 8263b786fb

View File

@@ -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()
}
}()