mirror of https://github.com/rails/rails
Merge pull request #4299 from Karunakar/logger
using the active support logger
This commit is contained in:
commit
e094b8d251
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue