mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Regenerate Airbrake config
This commit is contained in:
parent
674f4d8a20
commit
fb2e6978fd
1 changed files with 12 additions and 2 deletions
|
@ -2,7 +2,17 @@ Airbrake.configure do |config|
|
|||
config.host = ENV['airbrake_host']
|
||||
config.project_id = ENV['airbrake_project_id']
|
||||
config.project_key = ENV['airbrake_project_key']
|
||||
|
||||
config.root_directory = Rails.root
|
||||
config.logger =
|
||||
if ENV['RAILS_LOG_TO_STDOUT'].present?
|
||||
Logger.new(STDOUT, level: Rails.logger.level)
|
||||
else
|
||||
Logger.new(
|
||||
Rails.root.join('log', 'airbrake.log'),
|
||||
level: Rails.logger.level
|
||||
)
|
||||
end
|
||||
config.environment = ENV['airbrake_env'] || Rails.env
|
||||
config.ignore_environments = %w(development test)
|
||||
config.ignore_environments = %w[test]
|
||||
config.blacklist_keys = Rails.application.config.filter_parameters
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue