From af15615345e904d2a5b6d5f5b1f87a3848c0ef9d Mon Sep 17 00:00:00 2001 From: boyce <6549168@qq.com> Date: Fri, 14 Mar 2025 18:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node/node.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/node/node.go b/node/node.go index f851960..c46ff49 100644 --- a/node/node.go +++ b/node/node.go @@ -479,11 +479,7 @@ func setLogPath(args interface{}) error { return nil } logPath := strings.TrimSpace(args.(string)) - dir, err := os.Stat(logPath) - if err != nil || dir.IsDir() == false { - return errors.New("Not found dir " + logPath) - } - + _, err := os.Stat(logPath) if err != nil { err = os.MkdirAll(logPath, os.ModePerm) if err != nil {