aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
diff options
context:
space:
mode:
authorKarunakar (Ruby) <revurikarna@gmail.com>2011-12-22 00:19:25 +0530
committerKarunakar (Ruby) <revurikarna@gmail.com>2011-12-22 00:19:25 +0530
commit0fdf02929184bc49d97e645146ae9d06c4464f31 (patch)
treee247fda9f773757281cd4f45392ab35a612fd95b /actionpack/lib/action_dispatch/middleware
parentfa3b9fa87334260f6fbf5713492a43f804b07f5b (diff)
downloadrails-0fdf02929184bc49d97e645146ae9d06c4464f31.tar.gz
rails-0fdf02929184bc49d97e645146ae9d06c4464f31.tar.bz2
rails-0fdf02929184bc49d97e645146ae9d06c4464f31.zip
Action pack logger methodschanged to active supoort Logger methods
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_exceptions.rb2
-rw-r--r--actionpack/lib/action_dispatch/middleware/params_parser.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
index dabbabb1e6..b903f98761 100644
--- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -76,7 +76,7 @@ module ActionDispatch
end
def stderr_logger
- @stderr_logger ||= Logger.new($stderr)
+ @stderr_logger ||= ActiveSupport::Logger.new($stderr)
end
end
end
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb
index 6ded9dbfed..1cb803ffb9 100644
--- a/actionpack/lib/action_dispatch/middleware/params_parser.rb
+++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb
@@ -69,7 +69,7 @@ module ActionDispatch
end
def logger(env)
- env['action_dispatch.logger'] || Logger.new($stderr)
+ env['action_dispatch.logger'] || ActiveSupport::Logger.new($stderr)
end
end
end