Get rid of ChildLogger

Bug #1170691 reported by Marco Giusti
6
This bug affects 1 person
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.getLogger(__name__)
    # ...
    log.err("BOOM!")

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.getLogger("virtualbricks")

Related branches

Changed in virtualbrick:
status: New → Fix Committed
Revision history for this message
Marco Giusti (marco-giusti) wrote : Re: [Bug 1170691] Re: Get rid of ChildLogger

 status fixreleased

Changed in virtualbrick:
status: Fix Committed → Fix Released
Revision history for this message
Marco Giusti (marco-giusti) wrote :

 status fixcommitted

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.