Skip to content

Commit

Permalink
Merge pull request #2835 from Azure/AddtionalTimeLogging
Browse files Browse the repository at this point in the history
Added statements to log time taken to generate schemas for each RP
  • Loading branch information
Xynoclafe committed Mar 13, 2023
2 parents 3134761 + 61aedb0 commit 5ed6daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generator/cmd/generateall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ executeSynchronous(async () => {
const readme = validateAndReturnReadmePath(localPath, autoGenConfig.readmeFile || autoGenConfig.basePath);
pkg.packageName = getPackageString(readme);

const startTime = Date.now();
const newConfigs = await generateSchemas(readme, autoGenConfig);
const generationTime = Date.now() - startTime;
console.log(`Time taken to generate ${chalk.green.italic(autoGenConfig.basePath)} : ${chalk.magenta.bold(generationTime)} ms.`);
schemaConfigs.push(...newConfigs);
pkg.result = 'succeeded';
logOut(summaryLogger,
Expand Down

0 comments on commit 5ed6daf

Please sign in to comment.