Quiet the Logger in 1.1

I’m using Rails 1.1 and I’m trying to quiet the logger. I searched the
mailing list and placed the following inside my environment.rb:

RAILS_DEFAULT_LOGGER.level = (RAILS_ENV == ‘production’ ? Logger::INFO :
Logger::DEBUG)

But I keep getting:

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
const_missing': uninitialized constant RAILS_DEFAULT_LOGGER (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:inconst_missing’

Do I need to “require” a file? Any ideas on how to quiet the logger in
Rails 1.1?

Thanks in advance.

scott.


What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com

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