From accf960aa7a7871b09f65f41209090a8b25f3260 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 13 Sep 2022 21:15:51 +0300 Subject: [PATCH] LINXD-2209: Added logs on consume --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index f07c0a0..9bbe501 100644 --- a/app.js +++ b/app.js @@ -205,6 +205,7 @@ peers.on('connection', async socket => { }) socket.on('consume', async ({ rtpCapabilities, callId }, callback) => { + console.log('[consume] callId', callId); try { // console.log('consume', rtpCapabilities, callId); // check if the router can consume the specified producer @@ -212,6 +213,7 @@ peers.on('connection', async socket => { producerId: producer.id, rtpCapabilities })) { + console.log('[consume] Can consume', callId); // transport can now consume and return a consumer consumer = await consumerTransport.consume({ producerId: producer.id, @@ -252,7 +254,7 @@ peers.on('connection', async socket => { callback({ params }) } } catch (error) { - console.log(error.message) + console.log('[consume] Can\'t consume', error.message) callback({ params: { error: error