Merge pull request #7766 from nextcloud/log_properly_7755

Log a missing setting as INFO not as WARNING
This commit is contained in:
blizzz 2018-01-10 12:25:49 +01:00 committed by GitHub
commit fe12b2b05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ use OCP\Lock\ILockingProvider;
use OCP\Settings\ISettings; use OCP\Settings\ISettings;
use OCP\Settings\IManager; use OCP\Settings\IManager;
use OCP\Settings\ISection; use OCP\Settings\ISection;
use OCP\Util;
class Manager implements IManager { class Manager implements IManager {
/** @var ILogger */ /** @var ILogger */
@ -344,7 +345,7 @@ class Manager implements IManager {
try { try {
return \OC::$server->query($className); return \OC::$server->query($className);
} catch (QueryException $e) { } catch (QueryException $e) {
$this->log->logException($e); $this->log->logException($e, ['level' => Util::INFO]);
throw $e; throw $e;
} }
} }