Skip to content

Commit

Permalink
Add log level variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Oct 9, 2024
1 parent 08dc660 commit 089dbe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ function drupal_get_env(string|array $variables) : mixed {
}
}

// Supported values: https://github.com/Seldaek/monolog/blob/main/doc/01-usage.md#log-levels.
$settings['helfi_api_base.log_level'] = getenv('LOG_LEVEL') ?? (getenv('APP_ENV') === 'production' ? 'info' : 'debug');

/**
* Deployment identifier.
*
Expand Down

0 comments on commit 089dbe9

Please sign in to comment.