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

Change debug/trace using print out statements to use logging instead #11

Open
ltddev opened this issue Feb 16, 2015 · 1 comment
Open

Comments

@ltddev
Copy link
Owner

ltddev commented Feb 16, 2015

The current code uses simple print strings at various points in the code flow to provide debug and tracing information to the developer. These messages are not meant for the user. A boolean flag is used to turn on or off this printing.

Since logging is built-in and is the standard means to provide this function convert all the print strings to logging statements, whether to file or to std out.

@cclauss
Copy link
Contributor

cclauss commented Feb 17, 2015

You might take a look at thetraced decorator at: https://github.com/671620616/Tools/blob/master/Source/common_decorators.py it could be modified to do logging instead of printing.

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