shutdown: print stderr to log

This commit is contained in:
Maxi Quoß
2023-02-11 21:53:57 +01:00
parent 67870d8114
commit ef064e9335

View File

@@ -32,9 +32,6 @@ func ShutdownDevice(device *models.Record) error {
var stderr bytes.Buffer
cmd.Stderr = &stderr
if err := cmd.Run(); err != nil {
return err
}
if stderr.Len() > 0 {
return fmt.Errorf("%s", stderr.String())
}