enable rollbar only in pre and pro envs
This commit is contained in:
@@ -5,8 +5,10 @@ Rollbar.configure do |config|
|
||||
|
||||
config.access_token = Rails.application.secrets.rollbar_server_token
|
||||
|
||||
# Here we'll disable in 'test':
|
||||
if Rails.env.test?
|
||||
# Here we'll disable all environments except 'production':
|
||||
if Rails.env.preproduction? || Rails.env.production?
|
||||
config.enabled = true
|
||||
else
|
||||
config.enabled = false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user