Skip to content

Commit

Permalink
fix error_grouping config
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jan 9, 2025
1 parent bc2a6ec commit 6fe147e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/seek/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ def configure_exception_notification
'ActionController::InvalidAuthenticityToken',
'ActionController::UnknownHttpMethod',
'ActionController::BadRequest'] | ExceptionNotifier.ignored_exceptions
config.error_grouping = error_grouping_enabled,
config.error_grouping_period = error_grouping_timeout,
config.notification_trigger = ->(exception, count) {
# Send notifications at count = x^0, x^1, x^3, x^4... where
# x = error_grouping_log_base
(Math.log(count, error_grouping_log_base) % 1).zero?
}
config.error_grouping = error_grouping_enabled
config.error_grouping_period = error_grouping_timeout
config.notification_trigger = ->(exception, count) {
# Send notifications at count = x^0, x^1, x^3, x^4... where
# x = error_grouping_log_base
(Math.log(count, error_grouping_log_base) % 1).zero?
}
config.register_exception_notifier :email, {
sender_address: [noreply_sender],
email_prefix: "[ #{instance_name} ERROR ] ",
Expand Down

0 comments on commit 6fe147e

Please sign in to comment.