From 7796bcc5816d01acdf0ca1ca526d4f04f190fad7 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 9 Aug 2024 14:44:05 +0200 Subject: [PATCH] Remove spammy messages --- src/Logic/Osm/Changes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Logic/Osm/Changes.ts b/src/Logic/Osm/Changes.ts index 490fc56c5..eb7c3ff73 100644 --- a/src/Logic/Osm/Changes.ts +++ b/src/Logic/Osm/Changes.ts @@ -587,6 +587,7 @@ export class Changes { if (matchFound) { toUpload.push(c) } else { + console.log("Refusing change about "+c.type+"/"+ c.id+" as not in the objects. No internet?") refused.push(c) } }) @@ -708,6 +709,9 @@ export class Changes { let { toUpload, refused } = this.fragmentChanges(pending, objects) + if(toUpload.length === 0){ + return refused + } await this._changesetHandler.UploadChangeset( (csId, remappings) => { if (remappings.size > 0) {