diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-04 18:21:39 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-04 18:21:39 +0200 |
commit | 48b03b6c206a0a7ed9109a09d7939371d997a382 (patch) | |
tree | 19ff8b98298bb5b84aef9581224abe6d22007672 /apps/federation | |
parent | 8ada0cec2cf10426d05091c3a6fd65e0b85bd952 (diff) | |
download | nextcloud-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/federation')
-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); } |