Quash some monolog debug explicitly when we're running tests.

This commit is contained in:
Greyscale 2020-09-28 18:36:59 +02:00
parent 509d794ab5
commit 3f3b167e3d

View file

@ -156,7 +156,9 @@ class App
(new Filesystem())->mkdir($twigCachePath, 0777);
} catch (IOException $IOException) {
unset($twigSettings['cache']);
$this->getLogger()->warning(sprintf('Could not create Twig cache (%s), Twig cache disabled ', $twigCachePath));
if (!in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
$this->getLogger()->warning(sprintf('Could not create Twig cache (%s), Twig cache disabled ', $twigCachePath));
}
}
}