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 
terminal)?

-- 
Iñaki Baz Castillo <[email protected]>
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to