Skip to content

Commit 3e410e7

Browse files
committed
fix(nf): Reformat timer
1 parent 1d07d6b commit 3e410e7

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

  • libs/native-federation-core/src/lib/utils

libs/native-federation-core/src/lib/utils/logger.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ export const logger = {
2222
const milliseconds = nanoseconds / 1000000;
2323

2424
const msFormatted = milliseconds.toFixed(3);
25-
const timeStr =
26-
minutes > 0
27-
? `${minutes}:${seconds
28-
.toString()
29-
.padStart(2, '0')}:${msFormatted.padStart(7, '0')}`
30-
: seconds > 0
31-
? `${seconds}:${msFormatted.padStart(7, '0')}`
32-
: `${msFormatted}ms`;
25+
const timeStr = `${minutes.toString().padStart(2, '0')}:${seconds
26+
.toString()
27+
.padStart(2, '0')}:${msFormatted.padStart(7, '0')}ms`;
28+
3329
console.log(
3430
chalk.bgGreen.ansi256(15)(' DBG! '),
3531
`${timeStr} - ${milestone}`

0 commit comments

Comments
 (0)