#6187 closed defect (fixed)
Uncatchable error messages making it through to ChimeraX log
Reported by: | Zach Pearson | Owned by: | Zach Pearson |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Logging | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Recently while working on #6178 and attempting to present a good error message to users unable to connect to our backend, saw that third party packages are somehow able to print error messages to ChimeraX's logger (presumably, we make it so that logging.getLogger returns our log?). It would be nice if we could prevent this.
Attachments (1)
Change History (6)
by , 4 years ago
Attachment: | Screen Shot 2022-02-16 at 3.11.25 PM.png added |
---|
comment:1 by , 4 years ago
Will try the advice at the bottom of https://urllib3.readthedocs.io/en/latest/user-guide.html which is to set urllib3's log level higher e.g. logging.getLogger("urllib3").setLevel(logging.WARNING)
comment:2 by , 4 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:4 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 by , 4 years ago
FYI, it's because stderr and stdout get redirected to the logger by chimerax.ui.gui.redirect_stdio_to_logger()
urllib3 error coming in before our error