Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase logging around file removal events #3020

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

FlexW
Copy link

@FlexW FlexW commented Mar 19, 2021

To better see what is going on when and if files are removed by the
client.

See also: #260, #1433, #2913

@FlexW FlexW force-pushed the feature/increase-file-removal-logging branch from fcb0f2d to 94c54c9 Compare March 19, 2021 10:08
@FlexW FlexW force-pushed the feature/increase-file-removal-logging branch from 94c54c9 to bfcb375 Compare March 19, 2021 15:35
@FlexW
Copy link
Author

FlexW commented Mar 22, 2021

/rebase

To better see what is going on when and if files are removed by the
client.

See also: #260, #1433, #2913

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
@github-actions github-actions bot force-pushed the feature/increase-file-removal-logging branch from bfcb375 to b1983d7 Compare March 22, 2021 07:48
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-3020-b1983d7d19a8258159909f975941eccb0d73e3c7-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@FlexW FlexW merged commit 4d921c8 into master Mar 22, 2021
@FlexW FlexW deleted the feature/increase-file-removal-logging branch March 22, 2021 08:01
Copy link
Member

@er-vin er-vin left a comment

Choose a reason for hiding this comment

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

Damn... somehow I had pending comments which didn't get submitted... :-/

@@ -89,13 +89,15 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)

void PropagateLocalRemove::start()
{
qCInfo(lcPropagateLocalRemove) << "Start propagate local remove job";
Copy link
Member

Choose a reason for hiding this comment

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

I'd let go that one to avoid double logging in the common case. If you don't get to the second one it's due to an abort anyway so it's as if the job was never started.

src/libsync/propagateremotedelete.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants