diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-26 11:53:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 11:53:21 +0200 |
commit | b7e8ab97e731b77ef2ec519bfb98019516b7f682 (patch) | |
tree | d579e7442832672ab2987f9c9ecf62e79ca09a8d /apps/dav | |
parent | 12c5db90322f61d4d48e1bb534bb94382d17e317 (diff) | |
parent | 38a90130ce425d531a804dff591df4a883de3154 (diff) | |
download | nextcloud-server-b7e8ab97e731b77ef2ec519bfb98019516b7f682.tar.gz nextcloud-server-b7e8ab97e731b77ef2ec519bfb98019516b7f682.zip |
Merge pull request #9308 from nextcloud/proper-ocp-constants
Move log constants to ILogger
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index 1678a8831dc..ecfd0e5692d 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -108,14 +108,14 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { */ public function logException(\Exception $ex) { $exceptionClass = get_class($ex); - $level = \OCP\Util::FATAL; + $level = ILogger::FATAL; if (isset($this->nonFatalExceptions[$exceptionClass]) || ( $exceptionClass === ServiceUnavailable::class && $ex->getMessage() === 'System in maintenance mode.' ) ) { - $level = \OCP\Util::DEBUG; + $level = ILogger::DEBUG; } $this->logger->logException($ex, [ |