Mongrel_rails production vs development mode

I am migrating from mongrel_rails in development mode to production
mode. I have a number of debugging statements based on “puts” in my code
that emit info that I see scroll by when mongrel_rails is not daemonized
and running in development mode.

In daemonized production mode what happens to the output from these
statements? I have looked into all the logs, and while I see the
requests I don’t see the output of my “puts” statements.

On Fri, 2006-07-21 at 18:29 +0200, Mike K. wrote:

I am migrating from mongrel_rails in development mode to production
mode. I have a number of debugging statements based on “puts” in my code
that emit info that I see scroll by when mongrel_rails is not daemonized
and running in development mode.

In daemonized production mode what happens to the output from these
statements? I have looked into all the logs, and while I see the
requests I don’t see the output of my “puts” statements.

They should show up in log/mongrel.log, and you should be using Rail’s
logger. Most likely your puts calls are going out on the request since
cgi.rb hijacks the $stdout for it’s purposes.


Zed A. Shaw


http://mongrel.rubyforge.org/
http://www.railsmachine.com/ – Need Mongrel support?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs