PQM

PQM outputs 'No handlers could be found for logger "bzr"'

Bug #191393 reported by Tom Haddon
2
Affects Status Importance Assigned to Milestone
PQM
Confirmed
Medium
Unassigned

Bug Description

On PQM runs at the moment, you get the following output:

No handlers could be found for logger "bzr"

This appears to be related to not setting up a default logger, as this sample python session shows:

$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logger = logging
>>> l = logging.getLogger('foobar')
>>> l.warning('foobar')
No handlers could be found for logger "foobar"
>>>
$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logger = logging.basicConfig()
>>> l = logging.getLogger('foobar')
>>> l.warning('foobar')
WARNING:foobar:foobar

Attached is a diff that should address this.

Revision history for this message
Tom Haddon (mthaddon) wrote :
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 191393] [NEW] PQM outputs 'No handlers could be found for logger "bzr"'

On Tue, 2008-02-12 at 23:11 +0000, Tom Haddon wrote:
> Public bug reported:
>
> On PQM runs at the moment, you get the following output:
>
> No handlers could be found for logger "bzr"
>
> This appears to be related to not setting up a default logger, as this
> sample python session shows:

We don't want a default logger; we want a specific logger such as pqm
already sets up for itself, but in the right namespace for whatever is
logging something with no logging handlers.

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Tom Haddon (mthaddon) wrote :

It appears this is a problem with bzrlib.branch - get this error any time you try to open a remote branch, but works fine for local branches:

mthaddon@hurlyburly:~/work/pqm/pqm-queue/pqm$ python
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib.branch import Branch
>>> Branch.open('/home/mthaddon/work/pqm/hello-world')
BzrBranch6('file:///home/mthaddon/work/pqm/hello-world/')
>>> Branch.open('bzr+ssh://www.greenleaftech.net/home/mthaddon/pqm-test/published_hello-world')
No handlers could be found for logger "bzr"
RemoteBranch(bzr+ssh://www.greenleaftech.net/home/mthaddon/pqm-test/published_hello-world/)
>>>

Not sure if this bug needs retargeting as a result.

Changed in pqm:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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