Skip to content

Commit

Permalink
[INTERNAL] Rename environment variable to UI5_LOG_TASK_PERF for activ…
Browse files Browse the repository at this point in the history
…ating perfomance measurement (#748)

By using the environment variable UI5_LOG_TASK_PERF=true the processing time of a task is calculated and written to the log.
Rename the variable from UI5_PERF_TASK to UI5_LOG_TASK_PERF.
BLI: CPOUI5FOUNDATION-497
  • Loading branch information
flovogt authored May 10, 2022
1 parent bf4da91 commit 042d82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/AbstractBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class AbstractBuilder {
this._taskStart = performance.now();
await taskFunction();
this.taskLog.completeWork(1);
if (process.env.UI5_PERF_TASK) {
if (process.env.UI5_LOG_TASK_PERF) {
this.taskLog.info(`Task succeeded in ${Math.round((performance.now() - this._taskStart))} ms`);
}
}
Expand Down

0 comments on commit 042d82f

Please sign in to comment.