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

Adding option to disable logging to the console #120

Merged
merged 1 commit into from
Dec 20, 2016

Conversation

joeldenning
Copy link
Contributor

@joeldenning joeldenning commented Dec 20, 2016

See alexisvincent/systemjs-hmr#14, which is code that is waiting to be published in systemjs-hmr. Until that is published, this pull request should not be merged.

This simply exposes a new function setDebugLogging that allows the user to turn of logging things to the console. Note that when this project migrates to the next.js of systemjs-hmr, that this function will no longer be exported from systemjs-hmr. So potentially it would cause a breaking change for those who are using the function but then upgrade to systemjs-hmr@next.

@alexisvincent
Copy link
Owner

@joeldenning Thanks for this! Note, that upgrading to systemjs-hmr@next is going to be a breaking change anyway :) Since the whole state hydration mechanism is different.

@alexisvincent alexisvincent merged commit 4d5c20f into alexisvincent:master Dec 20, 2016
@joeldenning joeldenning deleted the disable-logging branch December 20, 2016 22:52
@peteruithoven
Copy link
Contributor

Wait, I didn't see this console.logging code, but why not use a package like debug? That's way more flexible and used by a lot of other libraries. Although, more in Node.js than on the client side.

@alexisvincent
Copy link
Owner

@peteruithoven Sure, all the same to me really, since this is the old version. Want to send a PR?

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

Successfully merging this pull request may close these issues.

None yet

3 participants