I can't test this at this momement. I will put it back in once i have a
chance to test it first Revert "finally found a way to disable airbrake [ci skip]"
This reverts commit 8aafd56482.
This commit is contained in:
parent
335172c411
commit
53304df740
1 changed files with 6 additions and 7 deletions
|
|
@ -2,11 +2,10 @@
|
||||||
# licensed under the Affero General Public License version 3 or later. See
|
# licensed under the Affero General Public License version 3 or later. See
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
|
|
||||||
Airbrake.configure do |config|
|
if AppConfig[:airbrake_api_key].present?
|
||||||
if AppConfig[:airbrake_api_key].present?
|
require 'airbrake'
|
||||||
|
Airbrake.configure do |config|
|
||||||
|
puts AppConfig[:airbrake_api_key]
|
||||||
config.api_key = AppConfig[:airbrake_api_key]
|
config.api_key = AppConfig[:airbrake_api_key]
|
||||||
else
|
|
||||||
# creative way to disable Airbrake, should be replaced once the gem provides a proper way
|
|
||||||
config.development_environments << Rails.env
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue