diff --git a/frontend/sync-client/src/sync-operations/syncer.ts b/frontend/sync-client/src/sync-operations/syncer.ts index 7a5fcb14..d6ee5621 100644 --- a/frontend/sync-client/src/sync-operations/syncer.ts +++ b/frontend/sync-client/src/sync-operations/syncer.ts @@ -107,10 +107,6 @@ export class Syncer { promise ); - this.logger.debug( - `Creating new pending document ${relativePath} with id ${id}` - ); - try { await this.syncQueue.add(async () => this.internalSyncer.unrestrictedSyncLocallyCreatedFile(document) @@ -177,7 +173,7 @@ export class Syncer { // in that case, we mustn't move it again. if ( this.database.getLatestDocumentByRelativePath(relativePath) === - undefined || + undefined || this.database.getLatestDocumentByRelativePath(relativePath) ?.isDeleted === true ) { @@ -400,6 +396,9 @@ export class Syncer { await this.createFakeDocumentsFromRemoteState(); const allLocalFiles = await this.operations.listFilesRecursively(); + this.logger.info( + `Scheduling sync for ${allLocalFiles.length} local files` + ); let locallyPossiblyDeletedFiles: DocumentRecord[] = [];