Permalink
Browse files

remove logger from rack handler

what is this, I don't even
  • Loading branch information...
1 parent c5bd574 commit 606dea99832ce5ffc69354f98490e24c5ca6a052 @shime shime committed Sep 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −0 features/rack.feature
  2. +0 −1 lib/airbrake/rack.rb
View
2 features/rack.feature
@@ -11,6 +11,7 @@ Feature: Use the notifier in a plain Rack app
Airbrake.configure do |config|
config.api_key = 'my_api_key'
+ config.logger = Logger.new STDOUT
end
app = Rack::Builder.app do
@@ -30,6 +31,7 @@ Feature: Use the notifier in a plain Rack app
Airbrake.configure do |config|
config.api_key = 'my_api_key'
config.ignore_user_agent << /ignore/
+ config.logger = Logger.new STDOUT
end
class Mock
View
1 lib/airbrake/rack.rb
@@ -22,7 +22,6 @@ module Airbrake
class Rack
def initialize(app)
@app = app
- Airbrake.configuration.logger ||= Logger.new STDOUT
end
def ignored_user_agent?(env)

0 comments on commit 606dea9

Please sign in to comment.