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

This commit is contained in:
Daniel Nelson 2018-04-03 16:57:07 -07:00
parent 15dbcd4d97
commit bf60b55bcb
1 changed files with 0 additions and 6 deletions

View File

@ -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 {
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
} }