Skip to content

Commit 140ba3c

Browse files
author
Fatme
authored
Merge pull request #3928 from NativeScript/fatme/missing-changed-file-in-log
fix: add changed file name in logs when `tns preview` command is executed
2 parents 03fbba2 + ce76d56 commit 140ba3c

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)