Skip to content

Commit ce76d56

Browse files
committed
fix: add changed file name in logs when tns preview command is executed
1 parent 9fca19d commit ce76d56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
9090
let result: FilesPayload = null;
9191
if (files && files.length) {
9292
result = await this.applyChanges(platformData, projectData, files);
93+
this.$logger.info(`Successfully synced ${result.files.map(filePayload => filePayload.file.yellow)} for platform ${platform}.`);
9394
} else {
9495
result = await this.getFilesPayload(platformData, projectData);
96+
this.$logger.info(`Successfully synced changes for platform ${platform}.`);
9597
}
9698

97-
this.$logger.info(`Successfully synced changes for platform ${platform}.`);
98-
9999
return result;
100100
} catch (err) {
101101
this.$logger.warn(`Unable to apply changes for platform ${platform}. Error is: ${err}, ${JSON.stringify(err, null, 2)}.`);

0 commit comments

Comments
 (0)