summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/Middleware/AddServerMiddleware.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib/Middleware/AddServerMiddleware.php')
-rw-r--r--apps/federation/lib/Middleware/AddServerMiddleware.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/federation/lib/Middleware/AddServerMiddleware.php b/apps/federation/lib/Middleware/AddServerMiddleware.php
index 247cc958833..c6ac42bd7c3 100644
--- a/apps/federation/lib/Middleware/AddServerMiddleware.php
+++ b/apps/federation/lib/Middleware/AddServerMiddleware.php
@@ -71,7 +71,10 @@ class AddServerMiddleware extends Middleware {
if (($controller instanceof SettingsController) === false) {
throw $exception;
}
- $this->logger->error($exception->getMessage(), ['app' => $this->appName]);
+ $this->logger->logException($exception, [
+ 'level' => \OCP\Util::ERROR,
+ 'app' => $this->appName,
+ ]);
if ($exception instanceof HintException) {
$message = $exception->getHint();
} else {