mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-21 03:44:17 +08:00
修复BUG
This commit is contained in:
@@ -90,6 +90,7 @@ func RegisterLogger(log string) {
|
|||||||
if _, err := os.Stat(logPath); os.IsNotExist(err) {
|
if _, err := os.Stat(logPath); os.IsNotExist(err) {
|
||||||
|
|
||||||
os.MkdirAll(log, 0777)
|
os.MkdirAll(log, 0777)
|
||||||
|
logPath = strings.Replace(logPath,"\\","/","")
|
||||||
|
|
||||||
if f, err := os.Create(logPath); err == nil {
|
if f, err := os.Create(logPath); err == nil {
|
||||||
f.Close()
|
f.Close()
|
||||||
|
Reference in New Issue
Block a user