summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-12-18 13:59:58 +0100
committerRobin Appelman <robin@icewind.nl>2017-12-18 13:59:58 +0100
commit4f0d03e1722fbc09944f24364501d1264653e6cb (patch)
tree178f80a66dbdc17a6bd11b460b254d46f3318592 /lib
parentb19b1379699cf7790a13575f27a05b2f6db14f6a (diff)
downloadnextcloud-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 'lib')
-rw-r--r--lib/private/Files/Storage/Common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 715b7b18499..56d683ffa25 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -229,6 +229,9 @@ abstract class Common implements Storage, ILockingStorage {
$source = $this->fopen($path1, 'r');
$target = $this->fopen($path2, 'w');
list(, $result) = \OC_Helper::streamCopy($source, $target);
+ if (!$result) {
+ \OC::$server->getLogger()->warning("Failed to write data while copying $path1 to $path2");
+ }
$this->removeCachedFile($path2);
return $result;
}