summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-12 18:10:59 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-03-12 18:10:59 +0100
commit044d01d0e13330120753077ba2ab3869da11e082 (patch)
tree56307658e2c17d65238d6f12b91737eeaf36d562 /lib/base.php
parent3655951dd7372be9193e9ddd6f4b717f8d2cc6b4 (diff)
downloadnextcloud-server-044d01d0e13330120753077ba2ab3869da11e082.tar.gz
nextcloud-server-044d01d0e13330120753077ba2ab3869da11e082.zip
Use proper method to log exceptions
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/base.php')
-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);