Rails exception logs going to nginx error log

888 views
Skip to first unread message

Anand Sankaran

unread,
Mar 2, 2012, 11:29:03 PM3/2/12
to phusion-...@googlegroups.com
Hi

I upgraded to passenger-3.0.9.  I notice that all uncaught exceptions and any logs to System out (using puts) now go to nginx error logs (/opt/nginx/logs/error.log in my case).

With earlier versions of passenger, these would go to Rails.root/log/Rails.env.log file.

Is there any way to get back to the old behavior?

Appreciate your help.

Hongli Lai

unread,
Mar 3, 2012, 3:41:35 AM3/3/12
to phusion-...@googlegroups.com

This is not up to Phusion Passenger. All data sent to stderr is
redirected to the web server error log. Everything written to
production.log is done explicitly by the Rails code. If something is
not written to production.log, it's because of Rails.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Reply all
Reply to author
Forward
0 new messages