You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Dirty trick here to completely re-initialize logging in this
logging.basicConfig(...) fails (for instance, you can't change format=...) unless you use the new force=True, but I'm not convinced that doesn't break something Thespian depends on, and I don't exactly understand what this hack is doing, nor why it's necessary.
I just wanted to bubble this up to your awareness.
The text was updated successfully, but these errors were encountered:
freckletonj
changed the title
logdirector's "Dirty Hack" just bit me.logdirector's "Dirty Trick" just bit me.
Jul 2, 2023
I was struggling to configure logging for my library that uses Thespian, until I found it was because of this function, I believe:
Thespian/thespian/system/logdirector.py
Line 46 in 4a7b522
logging.basicConfig(...)
fails (for instance, you can't changeformat=...
) unless you use the newforce=True
, but I'm not convinced that doesn't break something Thespian depends on, and I don't exactly understand what this hack is doing, nor why it's necessary.I just wanted to bubble this up to your awareness.
The text was updated successfully, but these errors were encountered: