From: Christoph Wurst Date: Thu, 4 May 2023 16:21:39 +0000 (+0200) Subject: fix(federation): Log address book sync exceptions X-Git-Tag: v27.0.0beta2~61^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48b03b6c206a0a7ed9109a09d7939371d997a382;p=nextcloud-server.git fix(federation): Log address book sync exceptions Signed-off-by: Christoph Wurst --- 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); }