Added logs

This commit is contained in:
Sergiu Toma 2022-09-29 16:42:21 +03:00
parent 8ac58f0d9d
commit 1d47d02792

3
app.js
View File

@ -219,7 +219,7 @@ peers.on('connection', async socket => {
console.log(`[transport-connect] socket.id ${socket.id} | callId ${callId}`)
await videoCalls[callId].producerTransport.connect({ dtlsParameters });
} catch (error) {
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`);
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${JSON.stringify(error)}`);
}
});
@ -382,6 +382,7 @@ const createWebRtcTransportLayer = async (callId, callback) => {
dtlsParameters: transport.dtlsParameters,
};
console.log(`createWebRtcTransportLayer | params.dtlsParameters ${params.dtlsParameters}`);
// Send back to the client the params
callback({ params });