From 6fe147eecb9c1cf3fd613c2df376d8a7ea0c76f6 Mon Sep 17 00:00:00 2001 From: Stuart Date: Thu, 9 Jan 2025 16:42:00 +0000 Subject: [PATCH] fix error_grouping config --- lib/seek/config.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/seek/config.rb b/lib/seek/config.rb index e1ec29ff8f..086d1beff8 100644 --- a/lib/seek/config.rb +++ b/lib/seek/config.rb @@ -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 ] ",