Skip to content

Commit

Permalink
Fix reloader error message to only print on actual error (elastic#5066)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsamuel authored and ruflin committed Aug 31, 2017
1 parent 427dc24 commit 518504c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di
- Move TCP UDP start up into `server.Start()` {pull}4903[4903]
- Changed the hashbang used in the beat helper script from `/bin/bash` to `/usr/bin/env bash`. {pull}5051[5051]
- Changed beat helper script to use `exec` when running the beat. {pull}5051[5051]
- Fix reloader error message to only print on actual error {pull}5066[5066]

*Auditbeat*

Expand Down
3 changes: 2 additions & 1 deletion libbeat/cfgfile/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ func (rl *Reloader) Run(runnerFactory RunnerFactory) {
if runner != nil && rl.registry.Has(runner.ID()) {
debugf("Remove module from stoplist: %v", runner.ID())
delete(stopList, runner.ID())
} else {
logp.Err("Error creating module: %s", err)
}
logp.Err("Error creating module: %s", err)
continue
}

Expand Down

0 comments on commit 518504c

Please sign in to comment.