Get rid of ChildLogger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Virtualbricks |
Fix Released
|
Undecided
|
Marco Giusti |
Bug Description
ChildLogger and 'brick-error' signal are cause of deadlock in the GUI. Actually a better solution is to use the logging facilities offered by python standard library.
Every module should get a reference to a logger at the very top of the file and then use that logger:
import logging
log = logging.
# ...
log.
Who is interested at the logging events should get the reference of the logger and attach its handler. Who is interested in all logging events should get the root logger:
log = logging.getLogger()
instead who is interested in all *virtualbricks'* logging events should get the *virtualbricks'* root logger:
log = logging.
Related branches
Changed in virtualbrick: | |
status: | New → Fix Committed |
Changed in virtualbrick: | |
status: | Fix Released → Fix Committed |
Changed in virtualbrick: | |
status: | Fix Committed → Fix Released |
assignee: | nobody → mg (marco-giusti) |
milestone: | none → 1.0 |
status fixreleased