Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tekert committed Dec 9, 2024
1 parent bd02064 commit e485c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func readFakeSMARTctl(logger *slog.Logger, device Device) gjson.Result {
// Get json from smartctl and parse it
func readSMARTctl(logger *slog.Logger, device Device) (gjson.Result, bool) {
start := time.Now()
out, err := exec.Command(*smartctlPath, "--json", "--info", "--health", "--attributes", "--tolerance=verypermissive", "--nocheck=standby", "--format=brief", "--log=error", "--device="+device.Type, device.Name).Output()
out, err := exec.Command(*smartctlPath, "--json", "--info", "--health", "--attributes", "--tolerance=verypermissive", "--nocheck=standby", "--format=brief", "--log=error", "--log=selftest", "--device="+device.Type, device.Name).Output()
if err != nil {
logger.Warn("S.M.A.R.T. output reading", "err", err, "device", device.Info_Name)
}
Expand Down

0 comments on commit e485c98

Please sign in to comment.