Merge pull request #1722 from nextcloud/hide-storage-warnings
hide storage wrapper warning for the readonly storage
This commit is contained in:
commit
deb59d3d48
|
@ -225,7 +225,7 @@ class Filesystem {
|
||||||
* @param int $priority
|
* @param int $priority
|
||||||
*/
|
*/
|
||||||
public static function addStorageWrapper($wrapperName, $wrapper, $priority = 50) {
|
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.", [
|
\OC::$server->getLogger()->warning("Storage wrapper '{wrapper}' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.", [
|
||||||
'wrapper' => $wrapperName,
|
'wrapper' => $wrapperName,
|
||||||
'app' => 'filesystem',
|
'app' => 'filesystem',
|
||||||
|
|
Loading…
Reference in New Issue