Skip to content

Commit

Permalink
Merge pull request #466 from City-of-Helsinki/update-configuration
Browse files Browse the repository at this point in the history
Automatic update
  • Loading branch information
teroelonen authored Oct 21, 2024
2 parents c1583d1 + 00b332a commit be1816b
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 38 deletions.
74 changes: 37 additions & 37 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 be1816b

Please sign in to comment.