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 { ...@@ -1151,9 +1151,9 @@ export default class NextNodeServer extends BaseServer {
const color = statusColor(res.statusCode) const color = statusColor(res.statusCode)
const method = req.method || 'GET' const method = req.method || 'GET'
writeStdoutLine( writeStdoutLine(
`${color(method)} ${color(req.url ?? '')} ${ `${method} ${req.url ?? ''} ${color(
res.statusCode (res.statusCode ?? 200).toString()
} in ${reqDuration}ms` )} in ${reqDuration}ms`
) )
if (fetchMetrics.length && enabledVerboseLogging) { 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