Skip to content
Snippets Groups Projects
Unverified Commit caf860bc authored by Daniel Nelson's avatar Daniel Nelson
Browse files

Don't print name of plugin or interval size during --test

parent beeab2c5
No related branches found
No related tags found
No related merge requests found
...@@ -203,11 +203,6 @@ func (a *Agent) Test() error { ...@@ -203,11 +203,6 @@ func (a *Agent) Test() error {
input.SetTrace(true) input.SetTrace(true)
input.SetDefaultTags(a.Config.Tags) 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 { if err := input.Input.Gather(acc); err != nil {
return err return err
} }
...@@ -217,7 +212,6 @@ func (a *Agent) Test() error { ...@@ -217,7 +212,6 @@ func (a *Agent) Test() error {
switch input.Name() { switch input.Name() {
case "inputs.cpu", "inputs.mongodb", "inputs.procstat": case "inputs.cpu", "inputs.mongodb", "inputs.procstat":
time.Sleep(500 * time.Millisecond) time.Sleep(500 * time.Millisecond)
fmt.Printf("* Plugin: %s, Collection 2\n", input.Name())
if err := input.Input.Gather(acc); err != nil { if err := input.Input.Gather(acc); err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment