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

US_DEBUG logs even when not in debug mode #3

Closed
magnet opened this issue May 31, 2012 · 2 comments
Closed

US_DEBUG logs even when not in debug mode #3

magnet opened this issue May 31, 2012 · 2 comments
Assignees

Comments

@magnet
Copy link

magnet commented May 31, 2012

Currently all logging methods trace on stdout even when in release mode.

It would be nice to make that conditional on whether DEBUG mode is set.

@saschazelzer
Copy link
Member

Yes, that is actually on my todo list (it is annoying in our software too...). I probably have to push the priority for this.

@ghost ghost assigned saschazelzer Jun 4, 2012
@saschazelzer
Copy link
Member

I managed to improve on the logging mechanism. Now all debug messages are suppressed in release builds and there is a possibility to suppress certain message types via preprocessor defines or to install a message handler and take care of printing the message yourself. See installMsgHandler.

Let me know if there are any issues.

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

2 participants