Browse Source

add fatal to stderr

kevin 4 năm trước cách đây
mục cha
commit
f3c367a323
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      core/logx/logs.go

+ 1 - 0
core/logx/logs.go

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