Remove WebSocket logging and fix object property assignment

This commit is contained in:
SrGooglo 2025-04-24 06:08:58 +00:00
parent 652cd747b1
commit 3753c8eae0

View File

@ -6,6 +6,7 @@ import defaults from "linebridge/dist/defaults"
const localNginxBinary = path.resolve(process.cwd(), "nginx-bin") const localNginxBinary = path.resolve(process.cwd(), "nginx-bin")
const serverPkg = require("../../../package.json") const serverPkg = require("../../../package.json")
/** /**
* NginxManager - Optimized version that batches configurations * NginxManager - Optimized version that batches configurations
* Waits for all services to register before applying configuration * Waits for all services to register before applying configuration
@ -253,7 +254,7 @@ http {
if (debugFlag) { if (debugFlag) {
console.log( console.log(
`🔍 Registering route for [${serviceId}]: ${normalizedPath} -> ${target} (${websocket ? "WebSocket" : "HTTP"})`, `🔍 Registering route for [${serviceId}]: ${normalizedPath} -> ${target}`,
) )
} }
@ -261,8 +262,8 @@ http {
const effectivePathRewrite = pathRewrite || {} const effectivePathRewrite = pathRewrite || {}
this.routes.set(normalizedPath, { this.routes.set(normalizedPath, {
serviceId, serviceId: serviceId,
target, target: target,
pathRewrite: effectivePathRewrite, pathRewrite: effectivePathRewrite,
websocket: !!websocket, websocket: !!websocket,
}) })