summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-10-18 16:15:52 +0200
committerGitHub <noreply@github.com>2016-10-18 16:15:52 +0200
commitdeb59d3d48d2589ff83491946c4cdcf19bb1f325 (patch)
treef27d9995066319a18eb4091b81461d28c4da61e7 /lib
parent4fbffe0f817e104f208e81f850371f4bf4b6d5fa (diff)
parent4d2835802f22e64371633b6e95a0ed718a3a3dc1 (diff)
downloadnextcloud-server-deb59d3d48d2589ff83491946c4cdcf19bb1f325.tar.gz
nextcloud-server-deb59d3d48d2589ff83491946c4cdcf19bb1f325.zip
Merge pull request #1722 from nextcloud/hide-storage-warnings
hide storage wrapper warning for the readonly storage
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index d835fea7f4c..113bb5a85c6 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -225,7 +225,7 @@ class Filesystem {
* @param int $priority
*/
public static function addStorageWrapper($wrapperName, $wrapper, $priority = 50) {
- if (self::$logWarningWhenAddingStorageWrapper) {
+ if (self::$logWarningWhenAddingStorageWrapper && $wrapperName !== 'readonly') {
\OC::$server->getLogger()->warning("Storage wrapper '{wrapper}' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.", [
'wrapper' => $wrapperName,
'app' => 'filesystem',