mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修复BUG
This commit is contained in:
parent
b2174abd9c
commit
b5324092e1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user