Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 20cb87b

Browse files
meeroslavFrozenPandaz
authored andcommittedApr 11, 2023
fix(core): fix NX_PERF_LOGGING toggles (#16054)
(cherry picked from commit 45a1a6e)
1 parent 1ccff1c commit 20cb87b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎packages/nx/src/tasks-runner/run-command.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function constructLifeCycles(lifeCycle: LifeCycle) {
292292
const lifeCycles = [] as LifeCycle[];
293293
lifeCycles.push(new StoreRunInformationLifeCycle());
294294
lifeCycles.push(lifeCycle);
295-
if (process.env.NX_PERF_LOGGING) {
295+
if (process.env.NX_PERF_LOGGING === 'true') {
296296
lifeCycles.push(new TaskTimingsLifeCycle());
297297
}
298298
if (process.env.NX_PROFILE) {

‎packages/nx/src/utils/perf-logging.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PerformanceObserver } from 'perf_hooks';
22

3-
if (process.env.NX_PERF_LOGGING) {
3+
if (process.env.NX_PERF_LOGGING === 'true') {
44
const obs = new PerformanceObserver((list) => {
55
for (const entry of list.getEntries()) {
66
console.log(`Time for '${entry.name}'`, entry.duration);

‎packages/workspace/src/utils/perf-logging.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PerformanceObserver } from 'perf_hooks';
22

3-
if (process.env.NX_PERF_LOGGING) {
3+
if (process.env.NX_PERF_LOGGING === 'true') {
44
const obs = new PerformanceObserver((list) => {
55
const entry = list.getEntries()[0];
66
console.log(`Time for '${entry.name}'`, entry.duration);

0 commit comments

Comments
 (0)
Please sign in to comment.