summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
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 /apps/files/ajax
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 'apps/files/ajax')
-rw-r--r--apps/files/ajax/list.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index 617ad18ac14..de3c7ccce5e 100644
--- a/apps/files/ajax/list.php
+++ b/apps/files/ajax/list.php
@@ -81,7 +81,7 @@ try {
OCP\JSON::success(array('data' => $data));
} catch (\OCP\Files\StorageNotAvailableException $e) {
- \OCP\Util::logException('files', $e);
+ \OC::$server->getLogger()->logException($e, ['app' => 'files']);
OCP\JSON::error([
'data' => [
'exception' => StorageNotAvailableException::class,
@@ -89,7 +89,7 @@ try {
]
]);
} catch (\OCP\Files\StorageInvalidException $e) {
- \OCP\Util::logException('files', $e);
+ \OC::$server->getLogger()->logException($e, ['app' => 'files']);
OCP\JSON::error(array(
'data' => array(
'exception' => StorageInvalidException::class,
@@ -97,7 +97,7 @@ try {
)
));
} catch (\Exception $e) {
- \OCP\Util::logException('files', $e);
+ \OC::$server->getLogger()->logException($e, ['app' => 'files']);
OCP\JSON::error(array(
'data' => array(
'exception' => \Exception::class,