Skip to content

Commit

Permalink
Update pilot.go
Browse files Browse the repository at this point in the history
fix  to LABEL_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL, when for range an label, will never get the ENV_SERVICE_LOGS_CUSTOME_CONFIG_TEMPL
  • Loading branch information
oldthreefeng committed Jun 30, 2021
1 parent c7a9b22 commit 874dc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/pilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 874dc4b

Please sign in to comment.