[REVIEW] PRoposed fix (Re: post-test failures in bzr.dev)

Robert Collins robertc at robertcollins.net
Mon Apr 10 08:03:02 BST 2006


On Fri, 2006-04-07 at 13:32 +0200, Olaf Conradi wrote:
> On 07/04/06, Robert Collins <robertc at robertcollins.net> wrote:
> > On Thu, 2006-04-06 at 23:28 +0200, Olaf Conradi wrote:
> > > Hi
> > >
> > > This will remove the handler from the internal handler list inside
> > > python's logging module, preventing logging.shutdown() of closing it
> > > twice.
> > >
> > > Mergable from
> > > http://deschacht.student.utwente.nl/bzr/bazaar-vcs/bzr.olaf.logging/
> >
> > Should that be in the opposite order - close and remove, not remove and
> > close ?
> 
> I thought about it, but no, I think it should be like this.
> 
> removeHandler only removes it from _bzr_logger, so nothing new can be
> logged to this handle. Then it's safe to close the handle.
> 
> > Also, flush() is not needed - close flushes.
> 
> For FileStreams it does. Don't think it's guarenteed in general (as
> logger's shutdown also forces a flush).
> 
> I removed the flush from my branch.

+1 from me then. if theres another plus one I'll merge it today, else
tomorrow.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060410/2e51c2b8/attachment.pgp 


More information about the bazaar mailing list