Re: Preserving logging streams through a daemon.DaemonContext switch (was: daemon.DaemonContext)

2010-04-09 Thread Vinay Sajip
On Apr 9, 12:46 am, Ben Finney wrote: > > I think you just have to pass the file object used by the handler > > (fh.stream) in the files_preserve array. > > Not quite. As the docs specify, you need to pass the *file descriptors* > for the files you want preserved. Okay, but the docstring you quot

Preserving logging streams through a daemon.DaemonContext switch (was: daemon.DaemonContext)

2010-04-08 Thread Ben Finney
Vinay Sajip writes: > On Apr 8, 1:58 pm, Rebelo wrote: > > Vinay Sajip wrote: > > > My guess is - files_preserve needs to be passed a file handle and > > > not alogginghandler. This is correct. As the ‘DaemonContext.__init__’ docstring says:: | `files_preserve` | :Default: ``None`` |