diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-17 13:10:10 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-17 13:10:10 +0200 |
commit | d671f13f26abddabcb773b87f15a9b286de40bdb (patch) | |
tree | f48f4715cabde4100f8a0a39e9de8e395f12b725 | |
parent | aef6ecdbf1fbe748acb64bcf8d1abdf14ea51e97 (diff) | |
download | nextcloud-server-d671f13f26abddabcb773b87f15a9b286de40bdb.tar.gz nextcloud-server-d671f13f26abddabcb773b87f15a9b286de40bdb.zip |
Write the type of exception to the log - really helpful for exceptions which hold no message
-rw-r--r-- | lib/public/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(), |