Merge pull request #4299 from Karunakar/logger

using the active support logger
This commit is contained in:
Aaron Patterson 2012-01-04 09:34:19 -08:00
commit e094b8d251
1 changed files with 2 additions and 2 deletions

View File

@ -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