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
);
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[] = [];