From ccdaef34863ac53521048c7a6d2db560a4e9562b Mon Sep 17 00:00:00 2001 From: xiaobo Date: Tue, 13 Dec 2022 17:13:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B2=BE=E7=AE=80=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=A8=A1=E5=9D=97=E5=86=97=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/log.go b/common/log.go index 9cc7ab7..574dba7 100644 --- a/common/log.go +++ b/common/log.go @@ -57,9 +57,9 @@ func WriteFile(result string, filename string) { func LogError(errinfo interface{}) { if WaitTime == 0 { - fmt.Println(fmt.Sprintf("已完成 %v/%v %v", End, Num, errinfo)) + fmt.Printf("已完成 %v/%v %v \n", End, Num, errinfo) } else if (time.Now().Unix()-LogSucTime) > WaitTime && (time.Now().Unix()-LogErrTime) > WaitTime { - fmt.Println(fmt.Sprintf("已完成 %v/%v %v", End, Num, errinfo)) + fmt.Printf("已完成 %v/%v %v \n", End, Num, errinfo) LogErrTime = time.Now().Unix() } }