diff options
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/log.php b/lib/log.php index 9c754cf60ce..17f781fa91c 100644 --- a/lib/log.php +++ b/lib/log.php @@ -47,6 +47,11 @@ class OC_Log { return true; } } + + // Uncaught exception handler + public static function onException($exception){ + self::write('PHP', $exception->getMessage() . ' at ' . $exception->getFile() . '#' . $exception->getLine(), self::FATAL); + } //Recoverable errors handler public static function onError($number, $message, $file, $line){ |