summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-17 13:10:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-17 13:10:10 +0200
commitd671f13f26abddabcb773b87f15a9b286de40bdb (patch)
treef48f4715cabde4100f8a0a39e9de8e395f12b725
parentaef6ecdbf1fbe748acb64bcf8d1abdf14ea51e97 (diff)
downloadnextcloud-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.php1
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(),