-
Notifications
You must be signed in to change notification settings - Fork 44
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
Disable logging? #14
Comments
I believe you can achieve this by editing the variables at Line 8 in 996ead0
|
I think maybe you can also just make this call in your main execution code: logging.set_truncate_thresholds(truncate_at, truncate_to) Maybe set to 0,0 ? |
what Ive done, its quite simple: Declare variable at top of logging.py file
and change log function to following:
NOTE: take care of spaces to match your file, as i've changed from 2 spaces to 4 |
I had to disable logging on one of my projects, cause for some reason log entries were ending up in a separate file I was working with called messages.txt.. The log entries were randomly appearing in that file, overriding what was in there.. And I haven't been able to figure out what intentionally replicates it yet, to make a proper report. But I think I managed to disable logging entirely, by simply doing this: from phew.logging import disable_logging_types, LOG_ALL
disable_logging_types(LOG_ALL) (Using the latest version from the repo.) |
I dont want to have logging in my server, is ther any way to do that?
The text was updated successfully, but these errors were encountered: