Skip to content

Commit

Permalink
Clean up experimental and beta messages (#7659)
Browse files Browse the repository at this point in the history
Sometimes the old logging mechanism was used. If all use the new one it is easier to find all the entries. In addition some messages were inconsistent.
  • Loading branch information
ruflin authored and ycombinator committed Jul 20, 2018
1 parent 2a8dbe0 commit e80283b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion heartbeat/beater/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/elastic/beats/heartbeat/config"
"github.com/elastic/beats/heartbeat/monitors"
"github.com/elastic/beats/heartbeat/scheduler"
"github.com/elastic/beats/libbeat/common/cfgwarn"
)

type Heartbeat struct {
Expand All @@ -38,7 +39,7 @@ type Heartbeat struct {
}

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error) {
logp.Warn("Beta: Heartbeat is beta software")
cfgwarn.Beta("Heartbeat is beta software")

config := config.DefaultConfig
if err := cfg.Unpack(&config); err != nil {
Expand Down
3 changes: 2 additions & 1 deletion libbeat/plugin/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"flag"
"strings"

"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/libbeat/logp"
)

Expand Down Expand Up @@ -54,7 +55,7 @@ func init() {

func Initialize() error {
if len(plugins.paths) > 0 {
logp.Warn("EXPERIMENTAL: loadable plugin support is experimental")
cfgwarn.Experimental("loadable plugin support is experimental")
}

for _, path := range plugins.paths {
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/ceph/osd_df/osd_df.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MetricSet struct {
}

func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The ceph osd_df metricset is experimental")
cfgwarn.Experimental("The ceph osd_df metricset is experimental")

http, err := helper.NewHTTP(base)
if err != nil {
Expand Down

0 comments on commit e80283b

Please sign in to comment.