Problem with RAILS_DEFAULT_LOGGER in 1.2.2

I’m getting the following error in 1.2.2:

/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:263:in
`load_missing_constant’:NameError: uninitialized constant
ActiveSupport::Deprecation::RAILS_DEFAULT_LOGGER

It shows up in script/console, the mongrel log, etc. However, if I
set RAILS_GEM_VERSION = ‘1.2.1’ then everything is fine. I tried setting

RAILS_DEFAULT_LOGGER = Logger.new("#{RAILS_ROOT}/log/#
{RAILS_ENV}.log", 20, 10.megabyte)

in development.rb, but no joy there either. Any thoughts. From
looking at the code, it seems like this is something initialize.rb
should be doing . . ?

I haven’t seen any other posts/blogs about the problem, so wondering
if it’s just me.

actionmailer (1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.3)
actionpack (1.13.2, 1.13.1, 1.13.0, 1.12.5, 1.12.3)
actionwebservice (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)
activerecord (1.15.2, 1.15.1, 1.15.0, 1.14.4, 1.14.3)
activesupport (1.4.1, 1.4.0, 1.3.1)
rails (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)

ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]

Thanks,
SR

Hi, you’ll have to set your RAILS_GEM_VERSION to the one that you’re
developing against because you have several versions of rails
installed

actionmailer (1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.3)
actionpack (1.13.2, 1.13.1, 1.13.0, 1.12.5, 1.12.3)
actionwebservice (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)
activerecord (1.15.2, 1.15.1, 1.15.0, 1.14.4, 1.14.3)
activesupport (1.4.1, 1.4.0, 1.3.1)
rails (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)

Furthermore, if you developing against rails 1.2.2 then you should set

RAILS_GEM_VERSION = ‘1.2.2’

Good luck,

-Conrad

On Feb 8, 2007, at 5:48 PM, Steven R. wrote:

I’m getting the following error in 1.2.2:

/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:263:in
`load_missing_constant’:NameError: uninitialized constant
ActiveSupport::Deprecation::RAILS_DEFAULT_LOGGER

I saw this when running ‘rake test’. I was also getting a
deprecation warning about ActionMailer::Base.server_settings in the
environment config file. After updating that (Base.smtp_settings)
the RAILS_DEFAULT_LOGGER error went away.

-faisal

On Feb 8, 7:38 pm, Faisal N Jawdat [email protected] wrote:

. . . After updating that (Base.smtp_settings) the RAILS_DEFAULT_LOGGER error went away.

Thanks - that fixed it!

SR