aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log/ErrorHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log/ErrorHandler.php')
-rw-r--r--lib/private/Log/ErrorHandler.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Log/ErrorHandler.php b/lib/private/Log/ErrorHandler.php
index 2d2cf7abd67..d37af8212a0 100644
--- a/lib/private/Log/ErrorHandler.php
+++ b/lib/private/Log/ErrorHandler.php
@@ -63,7 +63,7 @@ class ErrorHandler {
//Fatal errors handler
public static function onShutdown() {
$error = error_get_last();
- if($error && self::$logger) {
+ if ($error && self::$logger) {
//ob_end_clean();
$msg = $error['message'] . ' at ' . $error['file'] . '#' . $error['line'];
self::$logger->critical(self::removePassword($msg), ['app' => 'PHP']);
@@ -89,14 +89,11 @@ class ErrorHandler {
}
$msg = $message . ' at ' . $file . '#' . $line;
self::$logger->error(self::removePassword($msg), ['app' => 'PHP']);
-
}
//Recoverable handler which catch all errors, warnings and notices
public static function onAll($number, $message, $file, $line) {
$msg = $message . ' at ' . $file . '#' . $line;
self::$logger->debug(self::removePassword($msg), ['app' => 'PHP']);
-
}
-
}