From ebf99000383ee552c4216928ed603f49e7b572f0 Mon Sep 17 00:00:00 2001 From: TennyZhuang Date: Wed, 18 Mar 2020 21:02:28 +0800 Subject: [PATCH] use cmd --- cmd/cmd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index d40d35766..0f06d5599 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -4,7 +4,6 @@ package cmd import ( "context" - "fmt" "net/http" "net/http/pprof" "os" @@ -85,7 +84,7 @@ func Init(cmd *cobra.Command) (err error) { atomic.StoreUint64(&hasLogFile, 1) summary.InitCollector(true) } else { - fmt.Printf("log file: %s\n", conf.File.Filename) + cmd.Printf("log file: %s\n", conf.File.Filename) } lg, p, e := log.InitLogger(conf) if e != nil {