Skip to content

Commit

Permalink
Don't print name of plugin or interval size during --test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Apr 4, 2018
1 parent beeab2c commit caf860b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ func (a *Agent) Test() error {
input.SetTrace(true)
input.SetDefaultTags(a.Config.Tags)

fmt.Printf("* Plugin: %s, Collection 1\n", input.Name())
if input.Config.Interval != 0 {
fmt.Printf("* Internal: %s\n", input.Config.Interval)
}

if err := input.Input.Gather(acc); err != nil {
return err
}
Expand All @@ -217,7 +212,6 @@ func (a *Agent) Test() error {
switch input.Name() {
case "inputs.cpu", "inputs.mongodb", "inputs.procstat":
time.Sleep(500 * time.Millisecond)
fmt.Printf("* Plugin: %s, Collection 2\n", input.Name())
if err := input.Input.Gather(acc); err != nil {
return err
}
Expand Down

0 comments on commit caf860b

Please sign in to comment.