summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-05-04 18:21:39 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-05-04 18:21:39 +0200
commit48b03b6c206a0a7ed9109a09d7939371d997a382 (patch)
tree19ff8b98298bb5b84aef9581224abe6d22007672 /apps
parent8ada0cec2cf10426d05091c3a6fd65e0b85bd952 (diff)
downloadnextcloud-server-48b03b6c206a0a7ed9109a09d7939371d997a382.tar.gz
nextcloud-server-48b03b6c206a0a7ed9109a09d7939371d997a382.zip
fix(federation): Log address book sync exceptions
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-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);
}