Skip to content

Conversation

@miaulalala
Copy link
Contributor

@miaulalala miaulalala commented Jul 4, 2022

Add some more logging and logging at the appropriate level. Also, the sync status was only updated for a specific error case when the server revoked access but not on general failure. This has been added too.

Manual backport of #33104

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@miaulalala miaulalala force-pushed the enhancement/add-logging-lo-federation branch from 805892f to 029899b Compare July 4, 2022 13:35
@miaulalala miaulalala requested a review from nickvergessen July 4, 2022 13:54
$this->backend->deleteAddressBook($addressBookId);
$this->logger->info('Authorization failed, remove address book: ' . $url, ['app' => 'dav']);
throw $ex;
$this->logger->error('Authorization failed, remove address book: ' . $url, ['app' => 'dav']);

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OCP\ILogger::error has been marked as deprecated
throw $ex;
$this->logger->error('Authorization failed, remove address book: ' . $url, ['app' => 'dav']);
} else {
$this->logger->error('Client exception:', ['app' => 'dav', 'exception' => $ex]);

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OCP\ILogger::error has been marked as deprecated
@miaulalala miaulalala changed the title Add logging to federation sync [Stable23] Add logging to federation sync Jul 5, 2022
@miaulalala miaulalala changed the title [Stable23] Add logging to federation sync [Stable23] Logging, updating status for general error in federation Jul 6, 2022
@miaulalala miaulalala requested a review from nickvergessen July 6, 2022 12:05
@miaulalala miaulalala force-pushed the enhancement/add-logging-lo-federation branch from 3ba74d9 to ad0ef93 Compare July 8, 2022 10:34
@miaulalala miaulalala force-pushed the enhancement/add-logging-lo-federation branch from ad0ef93 to 11089f7 Compare July 11, 2022 10:43
@miaulalala
Copy link
Contributor Author

Drone failure is Samba (unrelated)

@PVince81 PVince81 added this to the Nextcloud 23.0.8 milestone Jul 27, 2022
@blizzz blizzz mentioned this pull request Aug 1, 2022
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 1, 2022
@blizzz blizzz merged commit 8ac46a6 into stable23 Aug 1, 2022
@blizzz blizzz deleted the enhancement/add-logging-lo-federation branch August 1, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement feature: federation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants