Skip to content
This repository
Browse code

remove logger from rack handler

what is this, I don't even
  • Loading branch information...
commit 606dea99832ce5ffc69354f98490e24c5ca6a052 1 parent c5bd574
Hrvoje Simic shime authored

Showing 2 changed files with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 0  features/rack.feature
  2. +0 1  lib/airbrake/rack.rb
2  features/rack.feature
@@ -11,6 +11,7 @@ Feature: Use the notifier in a plain Rack app
11 11
12 12 Airbrake.configure do |config|
13 13 config.api_key = 'my_api_key'
  14 + config.logger = Logger.new STDOUT
14 15 end
15 16
16 17 app = Rack::Builder.app do
@@ -30,6 +31,7 @@ Feature: Use the notifier in a plain Rack app
30 31 Airbrake.configure do |config|
31 32 config.api_key = 'my_api_key'
32 33 config.ignore_user_agent << /ignore/
  34 + config.logger = Logger.new STDOUT
33 35 end
34 36
35 37 class Mock
1  lib/airbrake/rack.rb
@@ -22,7 +22,6 @@ module Airbrake
22 22 class Rack
23 23 def initialize(app)
24 24 @app = app
25   - Airbrake.configuration.logger ||= Logger.new STDOUT
26 25 end
27 26
28 27 def ignored_user_agent?(env)

0 comments on commit 606dea9

Please sign in to comment.
Something went wrong with that request. Please try again.