Raised exceptions are not logged when USR2

Iñaki Baz Castillo ibc at aliax.net
Sat Jan 2 16:33:04 EST 2010

El Sábado, 2 de Enero de 2010, Iñaki Baz Castillo escribió:
> A simpler approach would be removing this line at the end of launcher.rb:
>   Unicorn::Configurator::DEFAULTS[:stderr_path] = "/dev/null"
> With this, errors would be displayed in stderr. Of course for workers
>  stderr should be reopened to point to /dev/null, but IMHO not for master
>  process.
> Perhaps errors preventing the master process to start should be displayed
>  to stderr instead of to the logger (as it could be not set yet).

And the other already available workaround is setting the "stderr_path".
Unfortunatelly $stderr.reopen requires a file as parameter so is not possible 
to use Syslog or any other logger, is it?

BTW, how to reset the $stderr so it points again to the default one (the 

Iñaki Baz Castillo <ibc at aliax.net>

More information about the mongrel-unicorn mailing list