Remove verbose debug logs from smart input (#5948)
This commit is contained in:
parent
411f67d2b8
commit
3c83a53d51
|
@ -125,7 +125,6 @@ func (m *Smart) Gather(acc telegraf.Accumulator) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Printf("D! [inputs.smart] devices: %+#v", devices)
|
|
||||||
|
|
||||||
m.getAttributes(acc, devices)
|
m.getAttributes(acc, devices)
|
||||||
return nil
|
return nil
|
||||||
|
@ -216,8 +215,6 @@ func gatherDisk(acc telegraf.Accumulator, usesudo, collectAttributes bool, smart
|
||||||
deviceFields := make(map[string]interface{})
|
deviceFields := make(map[string]interface{})
|
||||||
deviceFields["exit_status"] = exitStatus
|
deviceFields["exit_status"] = exitStatus
|
||||||
|
|
||||||
log.Printf("D! [inputs.smart] gatherDisk '%s'", deviceNode)
|
|
||||||
|
|
||||||
scanner := bufio.NewScanner(strings.NewReader(outStr))
|
scanner := bufio.NewScanner(strings.NewReader(outStr))
|
||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
|
|
Loading…
Reference in New Issue