On Sun, Jul 27, 2008 at 2:43 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > --log-file=- seems like a reasonable solution to me. Supporting something > like --log-file="|rotate..." seems complicated in comparison. > > My knowledge of daemonization is a bit vague in places too, but I think > stdout will be shared between the parent process and the daemon fork. > > paster serve clones stderr to stdout if you use --log-file, but maybe your > patch does that differently or wrong in some fashion. And probably it > shouldn't clone anything in that case. So you'd have to do: > > paster serve config.ini --daemon --log-file=- 2>&1 | rotate-logs > > Or maybe 2>&1 should go after | rotate-logs? That has always confused me.
I've attached a modified version of the patch that skips the cloning altogether when --log-file=- is used. With that change, the SSL exceptions now come out correctly. I should've tried that in the first place! :) -- Gary http://blog.extracheese.org
allow_logging_to_stdout_with_no_stderr_cloning.diff
Description: Binary data
_______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
