Skip to content

Commit 09cf562

Browse files
committed
add link to internal format implementation
1 parent b7f15a8 commit 09cf562

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/test/testLogger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export class TestLogger extends BaseLogger {
3636
}
3737

3838
private formatString(message: string, ...meta: any[]): string {
39+
// Want to avoid reimplementing nodes `format` so instead concat to end of string
40+
// Node's format implementation: https://github.com/nodejs/node/blob/3178a762d6a2b1a37b74f02266eea0f3d86603be/lib/internal/util/inspect.js#L2191-L2315
3941
return isWeb() ? [message, meta.map((s) => inspect(s))].join(' ') : util.format(message, ...meta)
4042
}
4143

0 commit comments

Comments
 (0)