Skip to content

Commit

Permalink
ignore elasticsearch network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 12, 2019
1 parent e5d00cd commit 730ec66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
config.dsn = ENV["SENTRY_DSN"]
config.release = "lupo:" + Lupo::Application::VERSION
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)

# ignore 502 and 503 from Elasticsearch
config.excluded_exceptions += ['Elasticsearch::Transport::Transport::Errors::BadGateway', 'Elasticsearch::Transport::Transport::Errors::ServiceUnavailable']
end

0 comments on commit 730ec66

Please sign in to comment.