]> source.dussan.org Git - nextcloud-server.git/commitdiff
log exceptions when listing files
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 29 Sep 2014 19:40:32 +0000 (21:40 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 8 Oct 2014 16:49:43 +0000 (18:49 +0200)
apps/files/ajax/list.php

index 16e48a2c2afe6110b2a1e46ba6b5205246b676fd..4abf5ad7607752fbf85a8d47995329865fdbe04f 100644 (file)
@@ -32,6 +32,7 @@ try {
 
        OCP\JSON::success(array('data' => $data));
 } catch (\OCP\Files\StorageNotAvailableException $e) {
+       \OCP\Util::logException('files', $e);
        OCP\JSON::error(array(
                'data' => array(
                        'exception' => '\OCP\Files\StorageNotAvailableException',
@@ -39,6 +40,7 @@ try {
                )
        ));
 } catch (\OCP\Files\StorageInvalidException $e) {
+       \OCP\Util::logException('files', $e);
        OCP\JSON::error(array(
                'data' => array(
                        'exception' => '\OCP\Files\StorageInvalidException',
@@ -46,6 +48,7 @@ try {
                )
        ));
 } catch (\Exception $e) {
+       \OCP\Util::logException('files', $e);
        OCP\JSON::error(array(
                'data' => array(
                        'exception' => '\Exception',