From 18e3856092b9d70584110b772c69a05db6b7e400 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 29 Sep 2014 21:40:32 +0200 Subject: [PATCH] log exceptions when listing files --- apps/files/ajax/list.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index 16e48a2c2af..4abf5ad7607 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -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', -- 2.39.5