fix: suppress routine ssh timing noise
This commit is contained in:
+4
-2
@@ -1626,6 +1626,7 @@ export function sshRuntimeTimingHint(options: {
|
||||
}
|
||||
|
||||
export function formatSshRuntimeTimingHint(hint: SshRuntimeTimingHint): string {
|
||||
if (!hint.slow) return "";
|
||||
return `UNIDESK_SSH_TIMING ${JSON.stringify(hint)}\n`;
|
||||
}
|
||||
|
||||
@@ -1836,12 +1837,13 @@ export async function runSsh(config: UniDeskConfig, providerId: string, args: st
|
||||
restore();
|
||||
const hint = sshFailureHint(invocation.providerId, parsed, exitCode, stderrTail);
|
||||
if (hint !== null) process.stderr.write(formatSshFailureHint(hint));
|
||||
process.stderr.write(formatSshRuntimeTimingHint(sshRuntimeTimingHint({
|
||||
const timingHint = formatSshRuntimeTimingHint(sshRuntimeTimingHint({
|
||||
invocation,
|
||||
transport: "backend-core-broker",
|
||||
exitCode,
|
||||
startedAtMs,
|
||||
})));
|
||||
}));
|
||||
if (timingHint) process.stderr.write(timingHint);
|
||||
resolve(exitCode);
|
||||
};
|
||||
child.on("error", (error) => {
|
||||
|
||||
Reference in New Issue
Block a user