This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients OG7, amaury.forgeotdarc, jnoller, pitrou, vinay.sajip
Date 2009-11-24.18:08:34
SpamBayes Score 0.001193498
Marked as misclassified No
Message-id <1259086135.3450.23.camel@localhost>
In-reply-to <182498.32330.qm@web25806.mail.ukl.yahoo.com>
Content
> Handler.__init__ no longer adds the handler instance to the _handlers
> map unconditionally, but still adds it to the _handlerList array. The
> only place this array is actually used is in the shutdown() API, which
> is registered to be run via atexit. It flushes and closes  all the
> handlers in the list, so that any data in logging buffers gets flushed
> before the process exits.

Why is this exactly? Why do you want to keep handlers until shutdown
rather than dispose of them when they aren't used anymore?

Moreover, closing in atexit is rather bad because the resources
necessary for proper closing (files, sockets...) may already have been
freed.
History
Date User Action Args
2009-11-24 18:08:36pitrousetrecipients: + pitrou, vinay.sajip, amaury.forgeotdarc, OG7, jnoller
2009-11-24 18:08:35pitroulinkissue6615 messages
2009-11-24 18:08:35pitroucreate