Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志文件目录创建--潜在的bug #6

Open
zhangjunfang opened this issue Nov 3, 2016 · 0 comments
Open

日志文件目录创建--潜在的bug #6

zhangjunfang opened this issue Nov 3, 2016 · 0 comments

Comments

@zhangjunfang
Copy link

在log.go文件中 存在 代码:
if _, err := os.Stat(dirPath); os.IsNotExist(err) { //检查目录是否存在
os.Mkdir(dirPath, 0775) //创建目录 建议修改为 os.MkdirAll(dirPath,0775)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant