Merge pull request #12572 from owncloud/issue/12571-disabled-preview-logflood
Stop flooding the log, when previews are disabled
This commit is contained in:
commit
8700ffe698
|
@ -98,7 +98,7 @@ class Preview {
|
|||
self::initProviders();
|
||||
}
|
||||
|
||||
if (empty(self::$providers)) {
|
||||
if (empty(self::$providers) && \OC::$server->getConfig()->getSystemValue('enable_previews', true)) {
|
||||
\OC_Log::write('core', 'No preview providers exist', \OC_Log::ERROR);
|
||||
throw new \Exception('No preview providers');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue