From b3e350d40fefd548a5b9fe4152f82be1d9a09a76 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 31 Aug 2026 15:23:57 +0700 Subject: [PATCH] feat(gateway): enable djs/voice debug logging on watch Networking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../src/modules/voice-recording/streamWatchReceiver.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts b/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts index 18c66c5c..6172592a 100644 --- a/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts +++ b/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts @@ -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); });