mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
24 lines
717 B
Ruby
24 lines
717 B
Ruby
HoptoadNotifier.configure do |config|
|
|
# Change this to some sensible data for your errbit instance
|
|
config.api_key = Rails.application.secrets.errbit_key || ''
|
|
config.host = Rails.application.secrets.errbit_host || ''
|
|
if config.api_key.blank? || config.host.blank?
|
|
config.development_environments = 'production development test'
|
|
else
|
|
config.development_environments = 'development test'
|
|
end
|
|
|
|
config.ignore_only = %w{
|
|
Some::ExceptionName
|
|
}
|
|
|
|
config.ignore_by_filter do |exception_data|
|
|
ret=false
|
|
if exception_data[:error_class] == 'ActionController::RoutingError'
|
|
message = exception_data[:error_message]
|
|
ret=true if message =~ %r{\[GET\]}
|
|
end
|
|
ret
|
|
end
|
|
|
|
end
|