Skip to content

Commit

Permalink
add fatal to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Aug 25, 2020
1 parent a32028c commit f3c367a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/logx/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func Infof(format string, v ...interface{}) {
func Must(err error) {
if err != nil {
msg := formatWithCaller(err.Error(), 3)
log.Print(msg)
output(severeLog, levelFatal, msg)
os.Exit(1)
}
Expand Down

0 comments on commit f3c367a

Please sign in to comment.