Forum: Mongrel how can I disable the rails logging in development?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
79836c5ea26f814c94414f4bc162e2f6?d=identicon&s=25 Robbie Allen (roallen)
on 2009-02-20 12:53
I can't seem to disable rails logging when using Mongrel.  Any fix for
this?

Also unanswered on the Rails forum:
http://www.ruby-forum.com/topic/109422#784596

Re: how can I disable the SQL logging which occurs in develo
Posted by Greg Hauptmann (Guest) on 29.05.2007 21:22
You're exactly correct Isak!  Thanks.

The logging functionality worked as it should in webrick.  Is seems
screwed up in Mongrel.  I'll swap to using webrick in development (and
try to
find out where/how to let the Mongrel team about this).

Interestingly I noted that with webrick the logging doesn't come out on
the console, but rather I had to open a second iTerm and tail the log
file
itself.  Perhaps there is a "script/server webrick" setting I could use
to enable logging to console if I went looking.

Tks
Greg
0f50b9a2ad85666d537d39bda49327ee?d=identicon&s=25 Jonathan Rochkind (jrochkind)
on 2009-02-20 16:29
(Received via mailing list)
I've had no trouble disabling Rails logging using mongrel.

In fact, I specifically do what you asked, turn off the SQL logging in
development. I do it with these lines in my development.rb:

  ar_logger = config.logger.clone
  ar_logger.level = Logger::INFO
  ActiveRecord::Base.logger = ar_logger

Works fine for me in Rails 2.1.  I believe it used to work fine for me
in Rails 1.x too. Using mongrel yeah, no problem.

So I'm not sure what problem you're having, but I don't think it's
universal to mongrel.

Jonathan
This topic is locked and can not be replied to.