Skip to content

Commit e047e17

Browse files
committed
hide storage wrapper warning for the readonly storage
1 parent b2d68c0 commit e047e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public static function logWarningWhenAddingStorageWrapper($shouldLog) {
225225
* @param int $priority
226226
*/
227227
public static function addStorageWrapper($wrapperName, $wrapper, $priority = 50) {
228-
if (self::$logWarningWhenAddingStorageWrapper) {
228+
if (self::$logWarningWhenAddingStorageWrapper && $wrapperName !== 'readonly') {
229229
\OC::$server->getLogger()->warning("Storage wrapper '{wrapper}' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.", [
230230
'wrapper' => $wrapperName,
231231
'app' => 'filesystem',

0 commit comments

Comments
 (0)