From 81ad994819fb98ec1f085c02bcae644b6c19e288 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Wed, 2 Mar 2022 19:03:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/log.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/log.go b/util/log.go index 2a585dd..31fce8c 100644 --- a/util/log.go +++ b/util/log.go @@ -35,11 +35,8 @@ func (c *loG) WriteLog(name string, a ...interface{}) { return } var t string - for i, v := range a { + for _, v := range a { t += fmt.Sprint(v) - if i != len(a)-1 { - t += " " - } } err := tool.File.Add(c.Path+name, c.time()+" "+t, 700) if err != nil {