Remove verbose debug logs from smart input (#5948)
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user