debug: add token endpoint logging

This commit is contained in:
Jannis Braun
2026-04-08 13:39:09 +02:00
parent f6af6bf579
commit 94461f8967
+2
View File
@@ -48,6 +48,7 @@ export async function livekitRoutes(app: FastifyInstance): Promise<void> {
}
const { channelId, dmChannelId } = request.body as { channelId?: string; dmChannelId?: string };
console.log(`[LIVEKIT_TOKEN] userId=${request.userId} username=${request.username} channelId=${channelId} dmChannelId=${dmChannelId}`);
// Determine room name based on channel type
let roomName: string;
@@ -118,6 +119,7 @@ export async function livekitRoutes(app: FastifyInstance): Promise<void> {
const jwt = await token.toJwt();
const livekitUrl = config.livekit.url ?? '';
console.log(`[LIVEKIT_TOKEN] ISSUED room=${roomName} identity=${identity} url=${livekitUrl}`);
const response: LiveKitTokenResponse = {
token: jwt,