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

Setting option debug:true does not result in any additional logs in console #1

Closed
nurazem opened this issue Dec 18, 2018 · 1 comment

Comments

@nurazem
Copy link

nurazem commented Dec 18, 2018

I have noticed that there are supposed to be a bunch of messages printed out to console during the initialization of the moesif-browser-js client. No messages are printed to the console regardless of setting debug: true in initialization options. This happens both when using the library through npm or a CDN.

@xinghengwang
Copy link
Member

actually, this is by design. The debug option isn't available on the optimized code, since we use very aggressive optimization to minimize the code size for the front end. So if you clone this repo, then edit, src/config.js, to set debug to true, then run npm run build to recompile and build everything, the debug flag would be on. Then that src/config.js debug is set to false, the aggressive compression algorithm removes all code regarding to print lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants