From b5324092e100a4f0982b6cbb6138b50e7f80a6c9 Mon Sep 17 00:00:00 2001 From: Minho Date: Fri, 2 Jun 2017 16:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/command.go b/commands/command.go index 79e6c130..63d00776 100644 --- a/commands/command.go +++ b/commands/command.go @@ -90,6 +90,7 @@ func RegisterLogger(log string) { if _, err := os.Stat(logPath); os.IsNotExist(err) { os.MkdirAll(log, 0777) + logPath = strings.Replace(logPath,"\\","/","") if f, err := os.Create(logPath); err == nil { f.Close()