summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/list.php')
-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,