From 20619e8ef002fc6e80b3b4ba7d750133302735e9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 19 May 2022 17:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E8=AE=B0=E5=BD=95=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tasks/health_check_executor.go | 1 + internal/tasks/health_check_task.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/tasks/health_check_executor.go b/internal/tasks/health_check_executor.go index cc524036..0719261b 100644 --- a/internal/tasks/health_check_executor.go +++ b/internal/tasks/health_check_executor.go @@ -234,6 +234,7 @@ func (this *HealthCheckExecutor) runNodeOnce(healthCheckConfig *serverconfigs.He key, err := nodeutils.Base64EncodeMap(maps.Map{ "onlyBasicRequest": healthCheckConfig.OnlyBasicRequest, + "accessLogIsOn": healthCheckConfig.AccessLogIsOn, }) if err != nil { return err diff --git a/internal/tasks/health_check_task.go b/internal/tasks/health_check_task.go index dfe43420..699603c7 100644 --- a/internal/tasks/health_check_task.go +++ b/internal/tasks/health_check_task.go @@ -72,7 +72,7 @@ func (this *HealthCheckTask) Loop() error { for _, cluster := range clusters { clusterId := int64(cluster.Id) - config := &serverconfigs.HealthCheckConfig{} + var config = &serverconfigs.HealthCheckConfig{} if len(cluster.HealthCheck) > 0 { err = json.Unmarshal(cluster.HealthCheck, config) if err != nil {