Commit 3c6b53a
authored
fix: support lazy startup log messages (#8054)
`flushStartupLogs` is called both with the main `./log` module (which
natively supports deferred/lazy message formatting via function
arguments) and with the simpler `./log/writer` pass-through (which does
not). Callers that push a closure onto the warnings queue — as recommended
by the log module's docs for expensive formatting — ended up being
stringified to `[object Function]` when the writer was used.
Invoke the closure at the call site so both log surfaces behave
consistently. This is a minimal, self-contained fix with no change to the
public API: callers that pass a string still work exactly as before.1 parent 0b7ef41 commit 3c6b53a
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | | - | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
0 commit comments