Fix missing callId

This commit is contained in:
Sergiu Toma 2022-09-27 13:13:29 +03:00
parent d81bc8582d
commit fc42c79210
1 changed files with 3 additions and 3 deletions

6
app.js
View File

@ -204,7 +204,7 @@ peers.on('connection', async socket => {
}
}
} catch (error) {
console.log(`ERROR | createWebRtcTransport | callId ${callId} | sender ${sender} | ${error.message}`);
console.log(`ERROR | createWebRtcTransport | callId ${socketDetails[socket.id]} | sender ${sender} | ${error.message}`);
}
});
@ -314,7 +314,7 @@ peers.on('connection', async socket => {
console.log(`[canConsume] Can't consume | callId ${callId}`);
}
} catch (error) {
console.log(`ERROR | consume | callId ${callId} | ${error.message}`)
console.log(`ERROR | consume | callId ${socketDetails[socket.id]} | ${error.message}`)
callback({ params: { error } });
}
});
@ -388,7 +388,7 @@ const createWebRtcTransportLayer = async (callId, callback) => {
return transport;
} catch (error) {
console.log(`ERROR | createWebRtcTransportLayer | callId ${callId} | ${error.message}`);
console.log(`ERROR | createWebRtcTransportLayer | callId ${socketDetails[socket.id]} | ${error.message}`);
callback({ params: { error } });
}
}