mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
健康检查增加是否记录访问日志选项
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user