1
0

Reduce amount of sync related log messages a bit

This commit is contained in:
Zef Hemel 2023-08-01 21:34:24 +02:00
parent cfb528eb42
commit 52a28c78a7

View File

@ -42,12 +42,13 @@ export class SpaceSync {
isSyncCandidate = this.options.isSyncCandidate,
): Promise<number> {
let operations = 0;
console.log("[sync]", "Fetching snapshot from primary");
console.log("[sync]", "Performing a full sync cycle...");
// Not try-catching this because this one's local and shouldn't fail (famous last words)
const primaryAllPages = this.syncCandidates(
await this.primary.fetchFileList(),
);
console.log("[sync]", "Fetching snapshot from secondary");
try {
const secondaryAllPages = this.syncCandidates(
await this.secondary.fetchFileList(),