fix(voicewake): log ssh/cli failure instead of staying silent
This commit is contained in:
@@ -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)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user