This project is archived and is in readonly mode.

#2841 ✓resolved
Sam Ruby

3.0 edge regression: no access to Logger in config/environments

Reported by Sam Ruby | June 26th, 2009 @ 02:44 PM | in 3.0.2

The following regression was caused by 8ee60660cec54f008ddaa54a4e8e06d099d8c7f5:

Add the following to config/environments/development.rb

config.logger = Logger.new(config.log_path, 2, 10.kilobytes)

Result:

/home/rubys/git/awdwr/work/depot/vendor/rails/activeresource/lib/../../activesupport/lib/active_support/dependencies.rb:456:in `load_missing_constant': uninitialized constant Rails::Logger (NameError)
        from /home/rubys/git/awdwr/work/depot/vendor/rails/activeresource/lib/../../activesupport/lib/active_support/dependencies.rb:91:in `const_missing'
        from /home/rubys/git/awdwr/work/depot/config/environments/development.rb:20
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:225
        from /home/rubys/git/awdwr/work/depot/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:10:in `silence_warnings'
        from /home/rubys/git/awdwr/work/depot/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:21:in `with_warnings'
        from /home/rubys/git/awdwr/work/depot/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:10:in `silence_warnings'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:218
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:82:in `initialize'
         ... 9 levels...
        from /home/rubys/git/awdwr/work/depot/vendor/rails/railties/lib/commands/server.rb:83
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from script/server:3

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages