Skip to content

Commit

Permalink
fix(log): tweak coloring (#64106)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 authored Apr 5, 2024
1 parent 763b9a6 commit d9b7244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/src/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d9b7244

Please sign in to comment.