Skip to content

Commit

Permalink
fix: Sentry 报错忽略个别异常
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Jul 27, 2020
1 parent 4935a74 commit 3cc46c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/sentry.rb
Expand Up @@ -9,17 +9,17 @@
config.excluded_exceptions += [
'ActionController::RoutingError',
'ActiveRecord::RecordNotFound',
'ActiveRecord::RecordInvalid'
'ActiveRecord::RecordInvalid',
'ActiveRecord::NoDatabaseError'
]
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
config.sanitize_fields << 'token'

version = Setting.version
vcs_ref = Setting.vcs_ref
version = "#{version}-#{vcs_ref}" if vcs_ref.present?
config.release = version

if vcs_ref.present?
config.release = "#{version}-#{vcs_ref}"
config.tags = {
docker: true,
docker_tag: ENV['DOCKER_TAG']
Expand Down

0 comments on commit 3cc46c4

Please sign in to comment.