Skip to content

Commit

Permalink
fix reloadable config enable debug
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jun 17, 2023
1 parent 499f388 commit f5346f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -4162,6 +4162,9 @@ func (a *Agent) reloadConfig(autoReload bool) error {
}
}

a.enableDebug.Store(newCfg.EnableDebug)
a.config.EnableDebug = newCfg.EnableDebug

return a.reloadConfigInternal(newCfg)
}

Expand Down Expand Up @@ -4296,8 +4299,6 @@ func (a *Agent) reloadConfigInternal(newCfg *config.RuntimeConfig) error {

a.proxyConfig.SetUpdateRateLimit(newCfg.XDSUpdateRateLimit)

a.enableDebug.Store(newCfg.EnableDebug)

return nil
}

Expand Down

0 comments on commit f5346f3

Please sign in to comment.