Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove logger from rack handler

what is this, I don't even
  • Loading branch information...
commit 606dea99832ce5ffc69354f98490e24c5ca6a052 1 parent c5bd574
Hrvoje Šimić shime authored
Showing with 2 additions and 1 deletion.
  1. +2 −0  features/rack.feature
  2. +0 −1  lib/airbrake/rack.rb
2  features/rack.feature
View
@@ -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
1  lib/airbrake/rack.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.