From: Ben Finney on
Sean DiZazzo <half.italian(a)gmail.com> writes:

> On Dec 10, 5:37 pm, Sean DiZazzo <half.ital...(a)gmail.com> wrote:
> > I'm finally getting around to trying out the python-daemon module
> > and have hit a wall.  I'm trying to set up logging inside of the
> > "with daemon.DaemonContext" block.  But when I try to use a logger
> > inside the block it throws an error:
>
> Got it! The DaemonContext closes all open file descriptors, including
> the one inside the logging handler. I got it to work by passing the
> logger's file handle in with the "preserve_files" option.

Beautiful.

If anyone would like to write a new user's guide for 'python-daemon' (in
reStructuredText format), I'd appreciate it.

If you want to take advantage of distributed VCS, the Bazaar repository
for the project is online; here's how to get a branch:

$ bzr version
Bazaar (bzr) 2.0.2
[…]

$ bzr branch http://bzr.debian.org/bzr/python-daemon/python-daemon.devel/
$ cd python-daemon.devel/

Then you can hack away and commit, and use 'bzr send' to send your
changes to me.

--
\ “Think for yourselves and let others enjoy the privilege to do |
`\ so too.” —Voltaire, _Essay On Tolerance_ |
_o__) |
Ben Finney