Permalink
Browse files

Merge pull request #4299 from Karunakar/logger

using the active support logger
  • Loading branch information...
tenderlove committed Jan 4, 2012
2 parents e2e4216 + a19f8b5 commit e094b8d251550128a2986b9efed7ab725b439546
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/deprecation/behaviors.rb
@@ -34,8 +34,8 @@ def behavior=(behavior)
if defined?(Rails) && Rails.logger
Rails.logger
else
- require 'logger'
- Logger.new($stderr)
+ require 'active_support/logger'
+ ActiveSupport::Logger.new($stderr)
end
logger.warn message
logger.debug callstack.join("\n ") if debug

0 comments on commit e094b8d

Please sign in to comment.