diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-05-05 03:18:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 03:18:48 +0200 |
commit | e127375dd45cb5327b00cdbc4892ddedbbf510de (patch) | |
tree | 78347f9c6eebb086edb03fd59645fba912706154 | |
parent | d2606a9b7dbeec98c9bbe87161a439f09ad0d844 (diff) | |
parent | 48b03b6c206a0a7ed9109a09d7939371d997a382 (diff) | |
download | nextcloud-server-e127375dd45cb5327b00cdbc4892ddedbbf510de.tar.gz nextcloud-server-e127375dd45cb5327b00cdbc4892ddedbbf510de.zip |
Merge pull request #38085 from nextcloud/chore/federation/address-book-sync-logging
fix(federation): Log address book sync exceptions
-rw-r--r-- | apps/federation/lib/SyncFederationAddressBooks.php | 8 |
1 files 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); } |