]> source.dussan.org Git - nextcloud-server.git/commitdiff
Write the type of exception to the log - really helpful for exceptions which hold...
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 17 Apr 2015 11:10:10 +0000 (13:10 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 17 Apr 2015 11:10:10 +0000 (13:10 +0200)
lib/public/util.php

index 626c98022e37f6f37194aff9dab460d9949ce47f..bc7f1b1f443846f2f5d4eedfd2e20bf18e56306f 100644 (file)
@@ -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(),