Skip to content

Commit

Permalink
Syncer: log when local collection is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Oct 9, 2024
1 parent ba0db9f commit 271576b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ abstract class Syncer<CollectionType: LocalCollection<*>>(
val dbCollection = dbCollections[localCollection.collectionUrl?.toHttpUrlOrNull()]
if (dbCollection == null) {
// Collection not available in db = on server (anymore), delete obsolete local collection
logger.info("Deleting local collection ${localCollection.title}")
localCollection.deleteCollection()
localCollections -= localCollection
} else {
Expand Down

0 comments on commit 271576b

Please sign in to comment.