Skip to content

Commit 5fcf881

Browse files
committed
Merge pull request #67 from seuros/patch-1
Update airbrake.rb
2 parents 0636b69 + 943cb0e commit 5fcf881

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

config/initializers/airbrake.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
Airbrake.configure do |config|
2-
config.api_key = 'b5d4af886affb6333163e4850d3447a4'
1+
if defined(Airbrake)
2+
Airbrake.configure do |config|
3+
config.api_key = ENV['AIRBRAKE_API']
4+
config.host = ENV['AIRBRAKE_HOST']
5+
config.port = 80
6+
config.secure = config.port == 443
7+
end
8+
else
9+
Rails.logger.warn '[WTF WARNING] Someone deleted airbrake and forgot the initializer'
310
end

0 commit comments

Comments
 (0)