fix: 修正日志多余的空格

This commit is contained in:
Mmx233
2022-03-02 19:03:14 +08:00
parent d0f9ea488c
commit 81ad994819

View File

@@ -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 {