Skip to content

Commit

Permalink
UHF-10880: Added an update hook to update the Raven 6.* settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Nov 6, 2024
1 parent 386c2ad commit 0b9d6c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions helfi_api_base.install
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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();
}

0 comments on commit 0b9d6c6

Please sign in to comment.