From 0b9d6c673498e3a8791717f22148a7f09d7e45ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Wed, 6 Nov 2024 10:52:10 +0200 Subject: [PATCH 1/2] UHF-10880: Added an update hook to update the Raven 6.* settings. --- helfi_api_base.install | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/helfi_api_base.install b/helfi_api_base.install index 27be033..1feacea 100644 --- a/helfi_api_base.install +++ b/helfi_api_base.install @@ -42,6 +42,18 @@ function helfi_api_base_install(bool $is_syncing = FALSE) : void { ->set('browser_traces_sample_rate', 0.2) ->set('database_tracing', TRUE) ->set('twig_tracing', TRUE) + ->set('log_levels', [ + 'emergency' => TRUE, + 'alert' => TRUE, + 'critical' => TRUE, + 'error' => TRUE, + 'warning' => FALSE, + 'notice' => FALSE, + 'info' => FALSE, + 'debug' => FALSE, + ]) + ->set('fatal_error_handler', TRUE) + ->set('javascript_error_handler', TRUE) ->save(); } } @@ -200,3 +212,10 @@ function helfi_api_base_update_9020(): void { ->save(); } } + +/** + * UHF-10880: Update the Raven settings. + */ +function helfi_api_base_update_9021() : void { + helfi_api_base_install(); +} From 5a6d4231c937cfe66e9d263a1477ab0b4f0c460a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Wed, 6 Nov 2024 11:17:52 +0200 Subject: [PATCH 2/2] UHF-10880: The 'javascript_error_handler' setting is set manually per drupal instance. --- helfi_api_base.install | 1 - 1 file changed, 1 deletion(-) diff --git a/helfi_api_base.install b/helfi_api_base.install index 1feacea..13acc4d 100644 --- a/helfi_api_base.install +++ b/helfi_api_base.install @@ -53,7 +53,6 @@ function helfi_api_base_install(bool $is_syncing = FALSE) : void { 'debug' => FALSE, ]) ->set('fatal_error_handler', TRUE) - ->set('javascript_error_handler', TRUE) ->save(); } }