Skip to content

Commit f4ccc50

Browse files
authored
Merge pull request #3164 from nextcloud/backport/3151/stable1.4
[stable1.4] Always log generic exceptions
2 parents d43c7a4 + fee49f3 commit f4ccc50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Middleware/ExceptionMiddleware.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public function afterException($controller, $methodName, \Exception $exception)
9898
'status' => 500,
9999
'message' => $exception->getMessage()
100100
];
101-
if ($this->config->getSystemValue('loglevel', Util::WARN) === Util::DEBUG) {
102-
$this->logger->logException($exception);
103-
}
101+
$this->logger->logException($exception);
104102
if ($this->config->getSystemValue('debug', true) === true) {
105103
$response['exception'] = (array) $exception;
106104
}

0 commit comments

Comments
 (0)