summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-03-12 22:01:10 +0100
committerGitHub <noreply@github.com>2018-03-12 22:01:10 +0100
commit66173e9b523e801c10945df7b76491cadb82fa20 (patch)
treeff9b4281ed948b3e5714f32a617266b37ed0beef /lib
parentfac0a11576874e25141e34749e7bc64a688b2506 (diff)
parent044d01d0e13330120753077ba2ab3869da11e082 (diff)
downloadnextcloud-server-66173e9b523e801c10945df7b76491cadb82fa20.tar.gz
nextcloud-server-66173e9b523e801c10945df7b76491cadb82fa20.zip
Merge pull request #8789 from nextcloud/proper-exception-logging
Use proper method to log exceptions
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f0e139d92c8..0c78d235c59 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -426,7 +426,7 @@ class OC {
// if session can't be started break with http 500 error
} catch (Exception $e) {
- \OCP\Util::logException('base', $e);
+ \OC::$server->getLogger()->logException($e, ['app' => 'base']);
//show the user a detailed error page
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
OC_Template::printExceptionErrorPage($e);