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

fix: only log errors when debug is set to true #308

Closed
wants to merge 1 commit into from

Conversation

yonson2
Copy link

@yonson2 yonson2 commented Jan 13, 2019

This is related to #271, simply put when Debug is set to false this PR makes it to the user will see almost no log calls, allowing to use this package as a third-party library and having more control of what is sent to Stderr or not

@anacrolix are there any log calls that you wouldn't skip showing here?

@yonson2 yonson2 mentioned this pull request Jan 29, 2019
@anacrolix
Copy link
Owner

I've pushed anacrolix/log throughout the codebase, and made it easier there to identify "levels" in the messages. That invalidates this PR, but I'm still interested in making the logging quieter. We can revisit this since those changes.

@anacrolix anacrolix closed this Jan 30, 2019
@yonson2 yonson2 deleted the fix/log-if-debug branch October 11, 2019 14:36
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.

2 participants