diff options
author | Robin Appelman <robin@icewind.nl> | 2017-12-18 13:59:58 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-12-18 13:59:58 +0100 |
commit | 4f0d03e1722fbc09944f24364501d1264653e6cb (patch) | |
tree | 178f80a66dbdc17a6bd11b460b254d46f3318592 /apps/files_external/lib | |
parent | b19b1379699cf7790a13575f27a05b2f6db14f6a (diff) | |
download | nextcloud-server-4f0d03e1722fbc09944f24364501d1264653e6cb.tar.gz nextcloud-server-4f0d03e1722fbc09944f24364501d1264653e6cb.zip |
additional debug logging on smb copy/rename failures
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 557dafda72c..67ba2ae2c54 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -52,6 +52,7 @@ use OCP\Files\Notify\IChange; use OCP\Files\Notify\IRenameChange; use OCP\Files\Storage\INotifyStorage; use OCP\Files\StorageNotAvailableException; +use OCP\Util; class SMB extends Common implements INotifyStorage { /** @@ -199,6 +200,7 @@ class SMB extends Common implements INotifyStorage { $this->remove($target); $result = $this->share->rename($absoluteSource, $absoluteTarget); } catch (\Exception $e) { + \OC::$server->getLogger()->logException($e, ['level' => Util::WARN]); return false; } unset($this->statCache[$absoluteSource], $this->statCache[$absoluteTarget]); |