Skip to content

Commit

Permalink
Update beta messages for config reload (#5202) (#5428)
Browse files Browse the repository at this point in the history
(cherry picked from commit bc84970)
  • Loading branch information
exekias authored and tsg committed Oct 24, 2017
1 parent f943a08 commit b6e4fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions filebeat/crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/elastic/beats/filebeat/registrar"
"github.com/elastic/beats/libbeat/cfgfile"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/libbeat/logp"
)

Expand Down Expand Up @@ -53,8 +52,6 @@ func (c *Crawler) Start(r *registrar.Registrar, configProspectors *common.Config
}

if configProspectors.Enabled() {
cfgwarn.Beta("Loading separate prospectors is enabled.")

c.prospectorsReloader = cfgfile.NewReloader(configProspectors)
prospectorsFactory := prospector.NewFactory(c.out, r, c.beatDone)
if err := c.prospectorsReloader.Check(prospectorsFactory); err != nil {
Expand All @@ -67,8 +64,6 @@ func (c *Crawler) Start(r *registrar.Registrar, configProspectors *common.Config
}

if configModules.Enabled() {
cfgwarn.Beta("Loading separate modules is enabled.")

c.modulesReloader = cfgfile.NewReloader(configModules)
modulesFactory := fileset.NewFactory(c.out, r, c.beatVersion, pipelineLoaderFactory, c.beatDone)
if err := c.modulesReloader.Check(modulesFactory); err != nil {
Expand Down
5 changes: 5 additions & 0 deletions libbeat/cfgfile/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/pkg/errors"

"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/libbeat/monitoring"
"github.com/elastic/beats/libbeat/paths"
Expand Down Expand Up @@ -73,6 +74,10 @@ func NewReloader(cfg *common.Config) *Reloader {
path = paths.Resolve(paths.Config, path)
}

if config.Reload.Enabled {
cfgwarn.Beta("Dynamic config reload is enabled.")
}

return &Reloader{
registry: NewRegistry(),
config: config,
Expand Down

0 comments on commit b6e4fed

Please sign in to comment.