Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hel-platta-automation authored and github-actions[bot] committed Oct 18, 2024
1 parent 1a6dd31 commit e3081b9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 32 deletions.
62 changes: 31 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion conf/cmi/raven.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rate_limit: 0
send_request_body: false
request_tracing: true
traces_sample_rate: 0.2
browser_traces_sample_rate: null
browser_traces_sample_rate: 0.2
database_tracing: true
twig_tracing: true
auto_session_tracking: false
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- helfi_api_base
- helfi_tpr
- media
- raven
- rest
- system
_core:
Expand All @@ -22,6 +23,7 @@ permissions:
- 'access content'
- 'display eu cookie compliance popup'
- 'restful get helfi_global_mobile_menu'
- 'send javascript errors to sentry'
- 'view helfi_announcements external entity'
- 'view helfi_news external entity'
- 'view helfi_news_groups external entity'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- helfi_tpr
- media
- paragraphs
- raven
- rest
- system
- tfa
Expand All @@ -29,6 +30,7 @@ permissions:
- 'disable own tfa'
- 'display eu cookie compliance popup'
- 'restful get helfi_global_mobile_menu'
- 'send javascript errors to sentry'
- 'setup own tfa'
- 'view helfi_announcements external entity'
- 'view helfi_news external entity'
Expand Down
5 changes: 5 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ function drupal_get_env(string|array $variables) : mixed {
$default_log_level = getenv('APP_ENV') === 'production' ? 'info' : 'debug';
$settings['helfi_api_base.log_level'] = getenv('LOG_LEVEL') ?: $default_log_level;

// Turn sentry JS error tracking on if SENTRY_DSN_PUBLIC is defined.
if (getenv('SENTRY_DSN_PUBLIC')) {
$config['raven.settings']['javascript_error_handler'] = TRUE;
}

/**
* Deployment identifier.
*
Expand Down

0 comments on commit e3081b9

Please sign in to comment.