From d671f13f26abddabcb773b87f15a9b286de40bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 17 Apr 2015 13:10:10 +0200 Subject: [PATCH] Write the type of exception to the log - really helpful for exceptions which hold no message --- lib/public/util.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/public/util.php b/lib/public/util.php index 626c98022e..bc7f1b1f44 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -141,6 +141,7 @@ class Util { */ public static function logException( $app, \Exception $ex, $level = \OCP\Util::FATAL ) { $exception = array( + 'Exception' => get_class($ex), 'Message' => $ex->getMessage(), 'Code' => $ex->getCode(), 'Trace' => $ex->getTraceAsString(),