Gateway: optimize ws logs in normal mode

This commit is contained in:
Peter Steinberger
2025-12-18 13:27:45 +00:00
parent 0b8e8144af
commit d406d3a058
4 changed files with 160 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
export type GatewayWsLogStyle = "full" | "compact";
export type GatewayWsLogStyle = "auto" | "full" | "compact";
let gatewayWsLogStyle: GatewayWsLogStyle = "full";
let gatewayWsLogStyle: GatewayWsLogStyle = "auto";
export function setGatewayWsLogStyle(style: GatewayWsLogStyle): void {
gatewayWsLogStyle = style;
@@ -9,3 +9,5 @@ export function setGatewayWsLogStyle(style: GatewayWsLogStyle): void {
export function getGatewayWsLogStyle(): GatewayWsLogStyle {
return gatewayWsLogStyle;
}
export const DEFAULT_WS_SLOW_MS = 50;