diff --git a/lib/services/livesync/playground/preview-app-livesync-service.ts b/lib/services/livesync/playground/preview-app-livesync-service.ts index e3a174448d..28d9b3d81f 100644 --- a/lib/services/livesync/playground/preview-app-livesync-service.ts +++ b/lib/services/livesync/playground/preview-app-livesync-service.ts @@ -90,12 +90,12 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService { let result: FilesPayload = null; if (files && files.length) { result = await this.applyChanges(platformData, projectData, files); + this.$logger.info(`Successfully synced ${result.files.map(filePayload => filePayload.file.yellow)} for platform ${platform}.`); } else { result = await this.getFilesPayload(platformData, projectData); + this.$logger.info(`Successfully synced changes for platform ${platform}.`); } - this.$logger.info(`Successfully synced changes for platform ${platform}.`); - return result; } catch (err) { this.$logger.warn(`Unable to apply changes for platform ${platform}. Error is: ${err}, ${JSON.stringify(err, null, 2)}.`);