Skip to content
Extraits de code Groupes Projets
Valider af921f72 rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

#6622 Logger refactoring: StdErrHandler: had to revert a previous change

In the tests, logging is disabled. But not when testing the logger itself…
parent 598ce5b5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,7 +36,10 @@ class StdErrHandler extends AbstractProcessingHandler ...@@ -36,7 +36,10 @@ class StdErrHandler extends AbstractProcessingHandler
protected function write(array $record) protected function write(array $record)
{ {
$this->writeToStdErr($record['formatted']); // Do not log on stderr during tests (prevent display of errors in CI output)
if (! defined('PIWIK_TEST_MODE')) {
$this->writeToStdErr($record['formatted']);
}
// This is the result of an old hack, I guess to force the error message to be displayed in case of errors // This is the result of an old hack, I guess to force the error message to be displayed in case of errors
// TODO we should get rid of it somehow // TODO we should get rid of it somehow
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter