Skip to content

Commit

Permalink
Final hotfix for Airbrake
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilawal Hameed committed Apr 13, 2017
1 parent eca7b2a commit 9ff3e54
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions no_light_sinatra.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
require_relative 'models/submission'

Airbrake.configure do |c|
c.project_id = 141503
c.project_key = '94823b6fc825a7bd16f6fc359d0ac501'
c.logger.level = Logger::DEBUG
c.ignore_environments = %w(test)
c.blacklist_keys = [/password/i]
end

class NoLightSinatra < Sinatra::Base
use Airbrake::Rack::Middleware
set public_folder: 'public', static: true

use Airbrake::Sinatra

configure do
DEFAULT_BRANDING = 'dell'
ENVIRONMENTS = {
Expand All @@ -14,14 +21,6 @@ class NoLightSinatra < Sinatra::Base
}

MongoMapper.setup(ENVIRONMENTS, ENV['RACK_ENV'])

Airbrake.configure do |c|
c.project_id = 141503
c.project_key = '94823b6fc825a7bd16f6fc359d0ac501'
c.logger = NoLightSinatra.logger
c.ignore_environments = %w(test)
c.blacklist_keys = [/password/i]
end
end

configure :production do
Expand Down

0 comments on commit 9ff3e54

Please sign in to comment.