daemon.DaemonContext

Ben Finney ben+python at benfinney.id.au
Thu Apr 8 19:52:20 EDT 2010


Rebelo <puntabluda at gmail.com> writes:

> i found a crude workaround:
> i wrote a function in which i start logging after deamon starts

That seems rather sub-optimal; you'll be unable to use the logger for
anything before the daemon context opens. This kind of problem is
exactly what ‘DaemonContext.files_preserve’ is intended to address.

Hopefully you can make use of the ‘DaemonContext.files_preserve’ option
as intended; please see my message earlier in this thread.

-- 
 \         “Of all classes the rich are the most noticed and the least |
  `\      studied.” —John Kenneth Galbraith, _The Age of Uncertainty_, |
_o__)                                                             1977 |
Ben Finney



More information about the Python-list mailing list