Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enable logging in debug #277

Closed
Rob--W opened this issue Nov 29, 2014 · 1 comment
Closed

Cannot enable logging in debug #277

Rob--W opened this issue Nov 29, 2014 · 1 comment

Comments

@Rob--W
Copy link
Contributor

Rob--W commented Nov 29, 2014

With the removal of sip_trace and log in favor of debug, there is no way to enable logging any more. This is caused by the fact that the debug method is generated at the initialization of each JsSIP module. When a browserified JsSIP is loaded in a page, the debug modules are already initialized, and logging cannot be toggled at runtime any more.

This issue is known upstream (debug-js/debug#156), but until that is fixed, JsSIP logs go into the void.

@ibc
Copy link
Member

ibc commented Nov 29, 2014

Just enable the debug once (JsSIP.debug.enable('*');) and refresh the page.

@ibc ibc closed this as completed Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants