Skip to content

Commit

Permalink
#1229: log downloaded assets counter to info stream if executed via v…
Browse files Browse the repository at this point in the history
…scode extension
  • Loading branch information
JoernBerkefeld committed Apr 15, 2024
1 parent 24c449a commit 56f4277
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/metadataTypes/Asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ class Asset extends MetadataType {
}
// we have to wait on execution or it potentially causes memory reference issues when changing between BUs
await this.requestAndSaveExtended(items, subType, retrieveDir, templateVariables);
Util.logger.debug(`Downloaded asset-${subType}: ${items.length}`);
if (Util.isRunViaVSCodeExtension) {
Util.logger.info(` Downloaded asset-${subType}: ${items.length}`);
} else {
Util.logger.debug(`Downloaded asset-${subType}: ${items.length}`);
}
} else if (retrieveDir && !items.length) {
Util.logger.info(` Downloaded asset-${subType}: ${items.length}`);
}
Expand Down

0 comments on commit 56f4277

Please sign in to comment.