aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/kernel
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-18 22:38:58 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-18 23:36:13 -0500
commitc1a8690d582c08777055caf449c03f85b4c8aa4b (patch)
treeaa88127d58845658f32fb9284b0f837f13700800 /activesupport/lib/active_support/core_ext/kernel
parenta4da8175a2c989104de1a38e43d5ddfb0f89b055 (diff)
downloadrails-c1a8690d582c08777055caf449c03f85b4c8aa4b.tar.gz
rails-c1a8690d582c08777055caf449c03f85b4c8aa4b.tar.bz2
rails-c1a8690d582c08777055caf449c03f85b4c8aa4b.zip
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/kernel')
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/debugger.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/debugger.rb b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
index c74d6cf884..4007a647be 100644
--- a/activesupport/lib/active_support/core_ext/kernel/debugger.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
@@ -2,12 +2,12 @@ module Kernel
unless respond_to?(:debugger)
# Starts a debugging session if ruby-debug has been loaded (call script/server --debugger to do load it).
def debugger
- RAILS_DEFAULT_LOGGER.info "\n***** Debugger requested, but was not available: Start server with --debugger to enable *****\n"
+ Rails.logger.info "\n***** Debugger requested, but was not available: Start server with --debugger to enable *****\n"
end
end
-
+
def breakpoint
- RAILS_DEFAULT_LOGGER.info "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n"
+ Rails.logger.info "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n"
debugger
end
-end \ No newline at end of file
+end