소스 검색

修复BUG

Minho 8 년 전
부모
커밋
b5324092e1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      commands/command.go

+ 1 - 0
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()