mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:51:24 +00:00
fix(cli): add config alias and reduce probe noise
This commit is contained in:
@@ -92,9 +92,10 @@ export async function callGateway<T = unknown>(
|
||||
client.stop();
|
||||
stop(err as Error);
|
||||
}
|
||||
},
|
||||
onClose: (code, reason) => {
|
||||
}, onClose: (code, reason) => {
|
||||
if (settled || ignoreClose) return;
|
||||
ignoreClose = true;
|
||||
client.stop();
|
||||
stop(new Error(`gateway closed (${code}): ${reason}`));
|
||||
},
|
||||
});
|
||||
|
||||
@@ -119,7 +119,9 @@ export class GatewayClient {
|
||||
this.opts.onHelloOk?.(helloOk);
|
||||
})
|
||||
.catch((err) => {
|
||||
logError(`gateway connect failed: ${String(err)}`);
|
||||
const msg = `gateway connect failed: ${String(err)}`;
|
||||
if (this.opts.mode === "probe") logDebug(msg);
|
||||
else logError(msg);
|
||||
this.ws?.close(1008, "connect failed");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user