From ad2602680247606cc0f9c1155caf690fb9df533b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 18 Dec 2025 13:07:26 +0000 Subject: [PATCH] Gateway: add compact ws verbose logs --- src/cli/gateway-cli.ts | 25 ++++++++++ src/gateway/server.ts | 100 ++++++++++++++++++++++++++++++++++++++ src/gateway/ws-logging.ts | 11 +++++ 3 files changed, 136 insertions(+) create mode 100644 src/gateway/ws-logging.ts diff --git a/src/cli/gateway-cli.ts b/src/cli/gateway-cli.ts index c6da39c9a..71a249298 100644 --- a/src/cli/gateway-cli.ts +++ b/src/cli/gateway-cli.ts @@ -1,6 +1,10 @@ import type { Command } from "commander"; import { callGateway, randomIdempotencyKey } from "../gateway/call.js"; import { startGatewayServer } from "../gateway/server.js"; +import { + type GatewayWsLogStyle, + setGatewayWsLogStyle, +} from "../gateway/ws-logging.js"; import { info, setVerbose } from "../globals.js"; import { GatewayLockError } from "../infra/gateway-lock.js"; import { defaultRuntime } from "../runtime.js"; @@ -52,8 +56,29 @@ export function registerGatewayCli(program: Command) { false, ) .option("--verbose", "Verbose logging to stdout/stderr", false) + .option( + "--ws-log