Skip to content

Commit

Permalink
feat: default recovery func
Browse files Browse the repository at this point in the history
  • Loading branch information
daheige committed Jan 10, 2022
1 parent bbb41e2 commit d2557f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grecover/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import "log"
// DefaultRecovery default recover func.
func DefaultRecovery() {
if e := recover(); e != nil {
log.Printf("wrapper exec recover:%v", e)
log.Printf("wrapper exec recover:%v\n", e)
}
}

0 comments on commit d2557f7

Please sign in to comment.