Unverified Commit d9b72440 authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

fix(log): tweak coloring (#64106)

parent 763b9a66
......@@ -1151,9 +1151,9 @@ export default class NextNodeServer extends BaseServer {
const color = statusColor(res.statusCode)
const method = req.method || 'GET'
writeStdoutLine(
`${color(method)} ${color(req.url ?? '')} ${
res.statusCode
} in ${reqDuration}ms`
`${method} ${req.url ?? ''} ${color(
(res.statusCode ?? 200).toString()
)} in ${reqDuration}ms`
)
if (fetchMetrics.length && enabledVerboseLogging) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment