From 6652eca91510bd2ee2ac1c2b642592e484ee274b Mon Sep 17 00:00:00 2001 From: chenjiandongx Date: Wed, 18 Dec 2024 14:28:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beater/beater.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beater/beater.go b/beater/beater.go index a586109..fb50f1c 100644 --- a/beater/beater.go +++ b/beater/beater.go @@ -115,6 +115,9 @@ func (bt *LogBeat) windowsReload() { checkFunc := func() error { fileInfo, err := os.Stat(bt.config.WindowsReloadPath) if err != nil { + if errors.Is(err, os.ErrNotExist) { + return nil + } return err }