Skip to content

Commit

Permalink
Ignore sync errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Mar 13, 2017
1 parent 6ed63f7 commit 17deaf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zapcore/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ func (c *ioCore) Write(ent Entry, fields []Field) error {
return err
}
if ent.Level > ErrorLevel {
// Since we may be crashing the program, sync the output.
return c.out.Sync()
// Since we may be crashing the program, sync the output. Ignore Sync
// errors, pending a clean solution to issue #370.
c.out.Sync()
}
return nil
}
Expand Down

0 comments on commit 17deaf1

Please sign in to comment.