From a1a65e8928d8a3b74925f742ef11a7c30feaded8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Thu, 18 May 2023 10:13:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/watch/record.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/watch/record.go b/internal/watch/record.go index e6c3d78..d6c6b1f 100644 --- a/internal/watch/record.go +++ b/internal/watch/record.go @@ -41,6 +41,7 @@ func (r *record) watch(ctx context.Context) { // 检查ip是否可以访问 count++ if err := r.checkIP(ctx, r.value); err != nil { + r.logger.Ctx(ctx).Error("check ip err", zap.Error(err)) // 连续3次无法访问,暂停记录 if !r.isDisable && count > 3 { count = 0