summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-06-21 12:00:22 +0200
committerGitHub <noreply@github.com>2019-06-21 12:00:22 +0200
commit9d121985dc2980ca9c3b4a69d807926d2424757d (patch)
treeea48b490305b9b118876830ca7f98c22b3373d4a /lib
parentc1eff72bdf91df623bb377967270befd5c1594f9 (diff)
parent22fa6421e5d6751d707c28fe742901534a8c8f48 (diff)
downloadnextcloud-server-9d121985dc2980ca9c3b4a69d807926d2424757d.tar.gz
nextcloud-server-9d121985dc2980ca9c3b4a69d807926d2424757d.zip
Merge pull request #15540 from nextcloud/bugfix/noid/prevent-faulty-logs-from-nested-setupFS-calls
Prevent faulty logs from nested setupFS calls
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/util.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 9bada5bb733..810f22fb9e5 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -204,7 +204,7 @@ class OC_Util {
\OC\Files\Filesystem::initMountManager();
- \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false);
+ $prevLogging = \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false);
\OC\Files\Filesystem::addStorageWrapper('mount_options', function ($mountPoint, \OCP\Files\Storage $storage, \OCP\Files\Mount\IMountPoint $mount) {
if ($storage->instanceOfStorage('\OC\Files\Storage\Common')) {
/** @var \OC\Files\Storage\Common $storage */
@@ -279,7 +279,8 @@ class OC_Util {
});
OC_Hook::emit('OC_Filesystem', 'preSetup', array('user' => $user));
- \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(true);
+
+ \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($prevLogging);
//check if we are using an object storage
$objectStore = \OC::$server->getSystemConfig()->getValue('objectstore', null);