Merge pull request #1812 from owncloud/add-logging-to-webdav-test-master
Enhancment to the WebDAV-Testing ...
This commit is contained in:
commit
0a6e9933fc
|
@ -562,7 +562,7 @@ class OC_Util {
|
||||||
*/
|
*/
|
||||||
public static function isWebDAVWorking() {
|
public static function isWebDAVWorking() {
|
||||||
if (!function_exists('curl_init')) {
|
if (!function_exists('curl_init')) {
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$settings = array(
|
$settings = array(
|
||||||
|
@ -578,6 +578,7 @@ class OC_Util {
|
||||||
} catch(\Sabre_DAV_Exception_NotAuthenticated $e) {
|
} catch(\Sabre_DAV_Exception_NotAuthenticated $e) {
|
||||||
$return = true;
|
$return = true;
|
||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
|
OC_Log::write('core', 'isWebDAVWorking: NO - Reason: '.$e, OC_Log::WARN);
|
||||||
$return = false;
|
$return = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue