Skip to content
Extraits de code Groupes Projets
Valider 81ecdbae rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Catch logging failures in ErrorHandler.

parent 2c087e9c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -95,8 +95,12 @@ class ErrorHandler
case E_DEPRECATED:
case E_USER_DEPRECATED:
default:
// TODO: it's possible for this to execute if the StaticContainer hasn't been created yet. what do we do in this case?
Log::warning(self::createLogMessage($errno, $errstr, $errfile, $errline));
try {
Log::warning(self::createLogMessage($errno, $errstr, $errfile, $errline));
} catch (\Exception $ex) {
// ignore (it's possible for this to happen if the StaticContainer hasn't been created yet)
}
break;
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter