summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/SyncFederationAddressBooks.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib/SyncFederationAddressBooks.php')
-rw-r--r--apps/federation/lib/SyncFederationAddressBooks.php8
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);
}