From 48b03b6c206a0a7ed9109a09d7939371d997a382 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 4 May 2023 18:21:39 +0200 Subject: [PATCH] fix(federation): Log address book sync exceptions Signed-off-by: Christoph Wurst --- apps/federation/lib/SyncFederationAddressBooks.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/federation/lib/SyncFederationAddressBooks.php b/apps/federation/lib/SyncFederationAddressBooks.php index 401fd19bd75..3c3c8c872c7 100644 --- a/apps/federation/lib/SyncFederationAddressBooks.php +++ b/apps/federation/lib/SyncFederationAddressBooks.php @@ -82,10 +82,14 @@ class SyncFederationAddressBooks { } catch (\Exception $ex) { if ($ex->getCode() === Http::STATUS_UNAUTHORIZED) { $this->dbHandler->setServerStatus($url, TrustedServers::STATUS_ACCESS_REVOKED); - $this->logger->error("Server sync for $url failed because of revoked access."); + $this->logger->error("Server sync for $url failed because of revoked access.", [ + 'exception' => $ex, + ]); } else { $this->dbHandler->setServerStatus($url, TrustedServers::STATUS_FAILURE); - $this->logger->error("Server sync for $url failed."); + $this->logger->error("Server sync for $url failed.", [ + 'exception' => $ex, + ]); } $callback($url, $ex); } -- 2.39.5