]> source.dussan.org Git - nextcloud-server.git/commitdiff
hide storage wrapper warning for the readonly storage 1722/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 12 Oct 2016 11:57:26 +0000 (13:57 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 13 Oct 2016 12:37:31 +0000 (14:37 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/Files/Filesystem.php

index d835fea7f4c1ad17c3dbd39729b71a4fe9ba5568..113bb5a85c63f16993129e64549054b3610f1ad3 100644 (file)
@@ -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',