-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Eliminate rogue logging.basicConfig
calls
#6786
Comments
Hello @zulip/server-production members, this issue was labeled with the area: production label, so you may want to check it out! |
I think it'd be a good idea to attempt to address this before the 1.7 release, so that we only need to carefully recheck that the right stuff is in the right log files after your other logging PR once... |
We've only got a couple left outside
Might be worth putting finishing this and then lint-banning it in |
Hello @gnprice, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
Its last callsite was removed in e46cbaf. Also ref zulip#6786.
Its last callsite was removed in e46cbaf. Also ref zulip#6786.
Its last callsite was removed in e46cbaf. Also ref zulip#6786.
Its last callsite was removed in e46cbaf. Also ref zulip#6786.
The
logging.basicConfig
function attempts to configure logging globally for the whole program. This can be suitable for a standalone script, but not for part of a large application like our Django app codebase -- if they do anything at all, then they stomp all over the config we've carefully set up inzproject/settings.py
.We have five examples of this outside of scripts, all in
zerver/
:Quite possibly they should all just be deleted. This task basically comes down to checking each one and seeing (a) if it's doing anything, and (b) if so, if we want any of what it's doing, and taking care of that some other way.
The text was updated successfully, but these errors were encountered: