diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-10 09:02:01 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-10 09:02:01 +0100 |
commit | f6d84bdb2301e86e74ae90ed40e8f2770e0dbe48 (patch) | |
tree | d5e9272f240dfa99cbc4753e25263f47423331b1 /lib | |
parent | 167f4624cee49fa085f0d503b59a2c60a2d16a07 (diff) | |
download | nextcloud-server-f6d84bdb2301e86e74ae90ed40e8f2770e0dbe48.tar.gz nextcloud-server-f6d84bdb2301e86e74ae90ed40e8f2770e0dbe48.zip |
Log a missing setting as INFO not as WARNING
It can happen for all kinds of reasons that a setting is not available.
(A user removes a folder, a setting got deleted). So don't polute the
log on default settings.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index cd0af5e7bb2..efeedbe6fcc 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -47,6 +47,7 @@ use OCP\Lock\ILockingProvider; use OCP\Settings\ISettings; use OCP\Settings\IManager; use OCP\Settings\ISection; +use OCP\Util; class Manager implements IManager { /** @var ILogger */ @@ -344,7 +345,7 @@ class Manager implements IManager { try { return \OC::$server->query($className); } catch (QueryException $e) { - $this->log->logException($e); + $this->log->logException($e, ['level' => Util::INFO]); throw $e; } } |