mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-13 23:24:45 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af15615345 |
@@ -479,11 +479,7 @@ func setLogPath(args interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
logPath := strings.TrimSpace(args.(string))
|
logPath := strings.TrimSpace(args.(string))
|
||||||
dir, err := os.Stat(logPath)
|
_, err := os.Stat(logPath)
|
||||||
if err != nil || dir.IsDir() == false {
|
|
||||||
return errors.New("Not found dir " + logPath)
|
|
||||||
}
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = os.MkdirAll(logPath, os.ModePerm)
|
err = os.MkdirAll(logPath, os.ModePerm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user