mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #38085 from nextcloud/chore/federation/address-book-sync-logging
fix(federation): Log address book sync exceptions
This commit is contained in:
commit
e127375dd4
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue