aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/behaviors.rb
diff options
context:
space:
mode:
authorKarunakar (Ruby) <revurikarna@gmail.com>2012-01-04 22:12:25 +0530
committerKarunakar (Ruby) <revurikarna@gmail.com>2012-01-04 22:12:25 +0530
commita19f8b5ca04d2519a2f823a640e0c9bf155bdee6 (patch)
treec57f032efcb48d7b291755ca76d393339b199615 /activesupport/lib/active_support/deprecation/behaviors.rb
parente2e4216d645ce32ad11b2a681b45c85025de3d1d (diff)
downloadrails-a19f8b5ca04d2519a2f823a640e0c9bf155bdee6.tar.gz
rails-a19f8b5ca04d2519a2f823a640e0c9bf155bdee6.tar.bz2
rails-a19f8b5ca04d2519a2f823a640e0c9bf155bdee6.zip
using the active support logger
Diffstat (limited to 'activesupport/lib/active_support/deprecation/behaviors.rb')
-rw-r--r--activesupport/lib/active_support/deprecation/behaviors.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb
index f9505a247c..80dcaf5613 100644
--- a/activesupport/lib/active_support/deprecation/behaviors.rb
+++ b/activesupport/lib/active_support/deprecation/behaviors.rb
@@ -34,8 +34,8 @@ module ActiveSupport
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