feat(gateway): enable djs/voice debug logging on watch Networking

Add debug:true to watch Networking options and wire net.on('debug') to
logger.info so djs/voice internal WS/DAVE state transitions appear in
journal. Without this, the stream-watch connection went silent after
'Streaming DAVE Networking' — no ready/error/close visible. Needed to
diagnose why the WS to stream endpoint 'c-sin14-xxx:2083' produced no
events.
This commit is contained in:
asepharyana
2026-08-31 15:23:57 +07:00
parent 75050bc088
commit b3e350d40f
@@ -247,7 +247,7 @@ function connectWatch(
token,
channelId: daveChannelId,
},
{ daveEncryption: true },
{ daveEncryption: true, debug: true },
);
const uidProps = uid;
@@ -294,6 +294,9 @@ function connectWatch(
);
closeWatchByKey(watchKey);
});
net.on("debug", (msg) => {
logger.info({ userId: uid, msg }, "watch-djs-debug");
});
net.on("close", () => {
closeWatchByKey(watchKey);
});