fix(voicewake): log ssh/cli failure instead of staying silent
parent
55ea0f398b
commit
f1dbff1dd4
|
|
@ -156,8 +156,10 @@ enum VoiceWakeForwarder {
|
||||||
if process.terminationStatus == 0 {
|
if process.terminationStatus == 0 {
|
||||||
self.logger.info("voice wake forward ok host=\(userHost, privacy: .public)")
|
self.logger.info("voice wake forward ok host=\(userHost, privacy: .public)")
|
||||||
} else {
|
} else {
|
||||||
// swiftlint:disable:next line_length
|
// surface the failure instead of being silent
|
||||||
self.logger.debug("voice wake forward exit=\(process.terminationStatus) host=\(userHost, privacy: .public) out=\(out, privacy: .public)")
|
let clipped = out.prefix(240)
|
||||||
|
self.logger.error(
|
||||||
|
"voice wake forward failed exit=\(process.terminationStatus) host=\(userHost, privacy: .public) out=\(clipped, privacy: .public)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue