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 joshpurvis
Recipients Julien.Palard, joshpurvis, vinay.sajip
Date 2013-05-15.23:37:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368661046.28.0.0153156142734.issue17981@psf.upfronthosting.co.za>
In-reply-to
Content
Ironically, I ran into this same exact issue today, and I have investigated the `files_preserve` param, with no luck. I'm not too familiar with the internals here, but from what I can tell it works with FileHandler, but not the SysLogHandler. 

If you try to add the syslog handler to the files_preserve list it has no effect. It seems to need a stream, and SysLogHandler doesn't have the stream attribute.

# This works for FileHandler's
log = logging.getLogger('MyLog')
fh = logging.FileHandler('/some/file')

with daemon.DaemonContext(files_preserve=[fh.stream, ]):
   log.warn("In the belly of the beast.")
History
Date User Action Args
2013-05-15 23:37:26joshpurvissetrecipients: + joshpurvis, vinay.sajip, Julien.Palard
2013-05-15 23:37:26joshpurvissetmessageid: <1368661046.28.0.0153156142734.issue17981@psf.upfronthosting.co.za>
2013-05-15 23:37:26joshpurvislinkissue17981 messages
2013-05-15 23:37:26joshpurviscreate