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:
@@ -247,7 +247,7 @@ function connectWatch(
|
|||||||
token,
|
token,
|
||||||
channelId: daveChannelId,
|
channelId: daveChannelId,
|
||||||
},
|
},
|
||||||
{ daveEncryption: true },
|
{ daveEncryption: true, debug: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
const uidProps = uid;
|
const uidProps = uid;
|
||||||
@@ -294,6 +294,9 @@ function connectWatch(
|
|||||||
);
|
);
|
||||||
closeWatchByKey(watchKey);
|
closeWatchByKey(watchKey);
|
||||||
});
|
});
|
||||||
|
net.on("debug", (msg) => {
|
||||||
|
logger.info({ userId: uid, msg }, "watch-djs-debug");
|
||||||
|
});
|
||||||
net.on("close", () => {
|
net.on("close", () => {
|
||||||
closeWatchByKey(watchKey);
|
closeWatchByKey(watchKey);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user