From 714d3b7a42ef5de8dd398d932e75dcd54f4f6164 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 6 Dec 2022 11:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0cmd=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E9=9B=86=E4=BB=A3=E7=A0=81=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cmd/main.go b/services/cmd/main.go index 3d7a90e7e..f36948e69 100644 --- a/services/cmd/main.go +++ b/services/cmd/main.go @@ -92,7 +92,7 @@ func main() { //执行命令 func Execute() { if err := RootCmd.Execute(); err != nil { - fmt.Fprintln(os.Stdin, err) + log.Errorln(err) os.Exit(1) } }