Skip to content
Snippets Groups Projects
Commit 7f87300b authored by Hervé Donner's avatar Hervé Donner
Browse files

Merge branch 'ISAICP-9099' into 'develop'

ISAICP-9099: Revert a change that prevents logs to be written by webserver.

See merge request digit/digit-joinup-dev!1620
parents 14301b18 8cc3e4d7
No related branches found
No related tags found
1 merge request!190Release v1.113.0
......@@ -6,17 +6,23 @@
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceModifierInterface;
use Joinup\Traits\DigitQaPipelineAwareTrait;
/**
* Sets Monolog handler paths from DRUPAL_MONOLOG_PATHS and adds dblog logging.
*/
class JoinupCoreServiceProvider implements ServiceModifierInterface {
use DigitQaPipelineAwareTrait;
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container): void {
$paths = getenv('DRUPAL_MONOLOG_PATHS') ?: 'default_handler:/tmp/drupal/log/default.log;php_handler:/tmp/drupal/log/php.log';
// Workaround FPFISSUPP-15044.
// @see https://citnet.tech.ec.europa.eu/CITnet/jira/browse/FPFISSUPP-15044
// @todo Remove once FPFISSUPP-15044 is fixed.
$paths = !static::isDigitQaPipeline() ? getenv('DRUPAL_MONOLOG_PATHS') : 'default_handler:/tmp/drupal/default.log;php_handler:/tmp/drupal/php.log';
// Sets the Monolog handler paths from DRUPAL_MONOLOG_PATHS env var.
if ($paths) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment