Add log lines

This commit is contained in:
Andras Schmelczer 2025-11-30 14:45:18 +00:00
parent 7beda491e9
commit c7c96b787a

View file

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