LINXD-2209: Added logs on consume

This commit is contained in:
Sergiu Toma 2022-09-13 21:33:04 +03:00
parent accf960aa7
commit 47eb302f5f

4
app.js
View File

@ -252,9 +252,11 @@ peers.on('connection', async socket => {
// send the parameters to the client // send the parameters to the client
callback({ params }) callback({ params })
} else {
console.log('[canConsume] Can\'t consume', error.message)
} }
} catch (error) { } catch (error) {
console.log('[consume] Can\'t consume', error.message) console.log('[consume] Error', error.message)
callback({ callback({
params: { params: {
error: error error: error