浏览代码

add fatal to stderr

kevin 4 年之前
父节点
当前提交
f3c367a323
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)
 	}