From 504790b0b02915a90a6c68aa58302079dcc95778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B8=A3=E6=B2=BC?= Date: Mon, 1 Jul 2024 10:01:45 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=20Modification=E3=80=91=E8=A7=A3=E5=86=B3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=A4=87=E4=BB=BD=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=87=BA=E9=94=99=E5=AF=BC=E8=87=B4=E5=AE=B9=E5=99=A8=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=88=9B=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mindxcheckutils/mindxcheckutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindxcheckutils/mindxcheckutils.go b/mindxcheckutils/mindxcheckutils.go index 84fc93a..2e97333 100644 --- a/mindxcheckutils/mindxcheckutils.go +++ b/mindxcheckutils/mindxcheckutils.go @@ -233,7 +233,7 @@ func ChangeRuntimeLogMode(runLog string) error { } if err != nil { fmt.Printf("prevent panic by handling failure accessing a path %q: %v\n", fileOrPath, err) - return err + return nil } hasLogPrefix := strings.HasPrefix(fileOrPath[runLogDirLen:], runLog) if !hasLogPrefix { -- Gitee From 60bd0cf443cbc90722d19b70dbfa88e345932dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B8=A3=E6=B2=BC?= Date: Mon, 1 Jul 2024 14:09:33 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=20Modification=E3=80=91=E8=A7=A3=E5=86=B3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=A4=87=E4=BB=BD=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=87=BA=E9=94=99=E5=AF=BC=E8=87=B4=E5=AE=B9=E5=99=A8=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=88=9B=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mindxcheckutils/mindxcheckutils.go | 1 - 1 file changed, 1 deletion(-) diff --git a/mindxcheckutils/mindxcheckutils.go b/mindxcheckutils/mindxcheckutils.go index 2e97333..b2356a1 100644 --- a/mindxcheckutils/mindxcheckutils.go +++ b/mindxcheckutils/mindxcheckutils.go @@ -232,7 +232,6 @@ func ChangeRuntimeLogMode(runLog string) error { return fmt.Errorf("the counter file is over maxFileNum") } if err != nil { - fmt.Printf("prevent panic by handling failure accessing a path %q: %v\n", fileOrPath, err) return nil } hasLogPrefix := strings.HasPrefix(fileOrPath[runLogDirLen:], runLog) -- Gitee From d76b1fa5b1b611f60726d60e4fee1f39c2641bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B8=A3=E6=B2=BC?= Date: Mon, 1 Jul 2024 17:23:57 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=20Modification=E3=80=91=E8=A7=A3=E5=86=B3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=A4=87=E4=BB=BD=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=87=BA=E9=94=99=E5=AF=BC=E8=87=B4=E5=AE=B9=E5=99=A8=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=88=9B=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mindxcheckutils/mindxcheckutils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindxcheckutils/mindxcheckutils.go b/mindxcheckutils/mindxcheckutils.go index b2356a1..f4f1273 100644 --- a/mindxcheckutils/mindxcheckutils.go +++ b/mindxcheckutils/mindxcheckutils.go @@ -232,7 +232,7 @@ func ChangeRuntimeLogMode(runLog string) error { return fmt.Errorf("the counter file is over maxFileNum") } if err != nil { - return nil + return err } hasLogPrefix := strings.HasPrefix(fileOrPath[runLogDirLen:], runLog) if !hasLogPrefix { @@ -247,7 +247,7 @@ func ChangeRuntimeLogMode(runLog string) error { return nil }) if err != nil { - return fmt.Errorf("traversal runLogDir failed: %s", err) + return nil } return nil } -- Gitee From d7825205b39ef16b43d2cb78ef82d5e721338032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B8=A3=E6=B2=BC?= Date: Mon, 1 Jul 2024 17:39:02 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=20Modification=E3=80=91=E8=A7=A3=E5=86=B3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=A4=87=E4=BB=BD=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=87=BA=E9=94=99=E5=AF=BC=E8=87=B4=E5=AE=B9=E5=99=A8=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=88=9B=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mindxcheckutils/mindxcheckutils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mindxcheckutils/mindxcheckutils.go b/mindxcheckutils/mindxcheckutils.go index f4f1273..5762a0f 100644 --- a/mindxcheckutils/mindxcheckutils.go +++ b/mindxcheckutils/mindxcheckutils.go @@ -232,6 +232,7 @@ func ChangeRuntimeLogMode(runLog string) error { return fmt.Errorf("the counter file is over maxFileNum") } if err != nil { + fmt.Printf("prevent panic by handling failure accessing a path %q: %v\n", fileOrPath, err) return err } hasLogPrefix := strings.HasPrefix(fileOrPath[runLogDirLen:], runLog) -- Gitee