Skip to content

Commit 4658457

Browse files
authored
Merge pull request #5095 from NativeScript/kddimirov/add-shouldMigrate-trace-log
chore: add trace for shouldMigrate caching
2 parents 45e97d6 + 1e9a55e commit 4658457

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/controllers/migrate-controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,14 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
163163
const cachedResult = await this.getCachedShouldMigrate(projectDir, platform);
164164
if (cachedResult !== false) {
165165
remainingPlatforms.push(platform);
166+
} else {
167+
this.$logger.trace(`Got cached result for shouldMigrate for platform: ${platform}`);
166168
}
167169
}
168170

169171
if (remainingPlatforms.length > 0) {
170172
shouldMigrate = await this._shouldMigrate({ projectDir, platforms: remainingPlatforms, allowInvalidVersions });
173+
this.$logger.trace(`Executed shouldMigrate for platforms: ${remainingPlatforms}. Result is: ${shouldMigrate}`);
171174

172175
if (!shouldMigrate) {
173176
for (const remainingPlatform of remainingPlatforms) {

0 commit comments

Comments
 (0)