Skip to content

Commit

Permalink
Sync 不返回异常。
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwong1989 committed Jul 22, 2022
1 parent c068174 commit 2e9e631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestNoneProd(t *testing.T) {
}

func TestProductionDefault(t *testing.T) {
defer func() { _ = log.Sync() }() // 确保程序结束前日志flush存储
defer log.Sync() // 确保程序结束前日志flush存储

defer func() {
if err := recover(); err != nil {
Expand Down

0 comments on commit 2e9e631

Please sign in to comment.