Explorar el Código

add fatal to stderr

kevin hace 4 años
padre
commit
f3c367a323
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)
 	}