openvidu
openvidu copied to clipboard
Remove console outputs from openvidu-node-client package
Describe the bug
It would be nice, if you could remove all the console outputs from openvidu-node-client
package. I am using it in my Node.js backend and I get really long outputs when error occurs and I cannot control the output especially in Session.ts (here), whole object Writable
gets printed out in terminal (i had to set my VS Code terminal to 15000 lines so I could see whole error). It would be nice, if all this console
calls could be removed from the package. It would be also nice to not set the whole error.request
in Error
, since Error
expects string
as an argument and error.request
is object. In my case I can see after I go through whole error.request
that I get error authorizationError: 'DEPTH_ZERO_SELF_SIGNED_CERT'
, maybe that could be somehow extracted and set as an throw new Error('DEPTH_ZERO_SELF_SIGNED_CERT')
instead?
Expected behavior
No console output coming from openvidu-node-client
package.
Thank you for the suggestions.
Good suggestion. If possible, create a var debug = true/false on init