Prev: Porting pyftpdlib to Python 3.x: question about tarball namingconvention
Next: pyZui - anyone know about this?
From: Sean DiZazzo on 10 Dec 2009 23:21
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.