Re: Raised exceptions are not logged when USR2

2010-01-04 Thread Iñaki Baz Castillo
El Domingo, 3 de Enero de 2010, Eric Wong escribió: # Totally untested, stick this in your Unicorn config file and let # us know if it works or blows up badly: require 'syslog_logger' class MySyslogLogger SyslogLogger alias puts error alias write error def flush;

Re: Raised exceptions are not logged when USR2

2010-01-04 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Domingo, 3 de Enero de 2010, Eric Wong escribió: # Totally untested, stick this in your Unicorn config file and let # us know if it works or blows up badly: require 'syslog_logger' class MySyslogLogger SyslogLogger alias

Re: Raised exceptions are not logged when USR2

2010-01-02 Thread Iñaki Baz Castillo
El Sábado, 2 de Enero de 2010, Iñaki Baz Castillo escribió: Hi, I use the ready_pipe branch. I set logger to log into Syslog, but the issue I'll explain here is the same even if I log to a file. I runned Unicorn daemonized. Now imagine I do a typo in my Rack config.ru (I use preload=true).

Re: Raised exceptions are not logged when USR2

2010-01-02 Thread Iñaki Baz Castillo
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