From: Thomas Müller Date: Fri, 17 Apr 2015 11:10:10 +0000 (+0200) Subject: Write the type of exception to the log - really helpful for exceptions which hold... X-Git-Tag: v8.1.0alpha2~43^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d671f13f26abddabcb773b87f15a9b286de40bdb;p=nextcloud-server.git Write the type of exception to the log - really helpful for exceptions which hold no message --- diff --git a/lib/public/util.php b/lib/public/util.php index 626c98022e3..bc7f1b1f443 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(),