From 874dc4b7ff875323dd198b3c84d56c9b87ae0bc6 Mon Sep 17 00:00:00 2001 From: louis <38313565+oldthreefeng@users.noreply.github.com> Date: Wed, 30 Jun 2021 11:30:13 +0800 Subject: [PATCH] Update pilot.go fix to LABEL_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL, when for range an label, will never get the ENV_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL --- pilot/pilot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/pilot.go b/pilot/pilot.go index 01dd4bb3..c9b95ac6 100644 --- a/pilot/pilot.go +++ b/pilot/pilot.go @@ -705,7 +705,7 @@ func (p *Pilot) getLogConfigs(jsonLogPath string, mounts []types.MountPoint, lab root := newLogInfoNode("") for _, k := range labelNames { for _, prefix := range p.logPrefix { - customConfig := fmt.Sprintf(ENV_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL, prefix) + customConfig := fmt.Sprintf(LABEL_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL, prefix) if customConfig == k { configs := strings.Split(labels[k], "\n") for _, c := range configs {