diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-01-06 15:59:38 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-01-06 15:59:38 +0000 |
commit | 402a3ed1467f4b98affd8de602e8e9387178950a (patch) | |
tree | 4d11167de2dd20831f099d28daca87ad82c93c6d /lib/private/files/storage/dav.php | |
parent | 622c4cf77903470bc7ddc1df5b74d5e17a0e70c7 (diff) | |
download | nextcloud-server-402a3ed1467f4b98affd8de602e8e9387178950a.tar.gz nextcloud-server-402a3ed1467f4b98affd8de602e8e9387178950a.zip |
Improve debugging for ServiceUnavailable exceptions
I was getting a lot of these in my logs for no apparent reason, and file
uploads were failing:
{"app":"webdav","message":"Sabre\\DAV\\Exception\\ServiceUnavailable: ","level":4,"time":"2015-01-06T15:33:39+00:00"}
In order to debug it, I had to add unique messages to all the places where
this exception was thrown, to identify which one it was, and that made the
logs much more useful:
{"app":"webdav","message":"Sabre\\DAV\\Exception\\ServiceUnavailable: Encryption is disabled","level":4,"time":"2015-01-06T15:36:47+00:00"}
Diffstat (limited to 'lib/private/files/storage/dav.php')
-rw-r--r-- | lib/private/files/storage/dav.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index 887ec1972b3..355148de37a 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -529,7 +529,7 @@ class DAV extends \OC\Files\Storage\Common { } catch (Exception\NotFound $e) { return false; } catch (Exception $e) { - throw new StorageNotAvailableException(); + throw new StorageNotAvailableException(get_class($e).": ".$e->getMessage()); } } } |