hide storage wrapper warning for the readonly storage

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2016-10-12 13:57:26 +02:00
parent b2d68c0009
commit 4d2835802f
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

View 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',