summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-04-18 09:28:48 +0200
committerJoas Schilling <nickvergessen@gmx.de>2015-04-18 09:28:48 +0200
commit8cb0d97b1099561d7f9a059f3ba8105a2c719aab (patch)
treec3b264061869cf7a8ba039ec3bc5456f4e8aca07
parent37a871127b750d0f633cdfb7713b0582dfdf2d6a (diff)
parentd671f13f26abddabcb773b87f15a9b286de40bdb (diff)
downloadnextcloud-server-8cb0d97b1099561d7f9a059f3ba8105a2c719aab.tar.gz
nextcloud-server-8cb0d97b1099561d7f9a059f3ba8105a2c719aab.zip
Merge pull request #15692 from owncloud/log-exception-type-master
Write the type of exception to the log - really helpful for exceptions w...
-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(),