mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
修复BUG
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user