Skip to content

Commit

Permalink
more descriptive comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Jan 21, 2021
1 parent 90aa1fa commit 4ffd648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/elastic-agent/pkg/agent/operation/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func (o *Operator) generateMonitoringSteps(version string, output interface{}) [
watchLogs := o.monitor.WatchLogs()
watchMetrics := o.monitor.WatchMetrics()

// generate only on change
// generate only when monitoring is running (for config refresh) or
// state changes (turning on/off)
if watchLogs != o.isMonitoringLogs() || watchLogs {
fbConfig, any := o.getMonitoringFilebeatConfig(output)
stepID := configrequest.StepRun
Expand Down

0 comments on commit 4ffd648

Please sign in to comment.