Skip to content

Commit

Permalink
Update logging method for warn() to use console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
pacocoursey committed Apr 30, 2024
1 parent 34a96e1 commit 7cc9a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/output/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const prefixes = {

const LOGGING_METHOD = {
log: 'log',
warn: 'warn',
warn: 'log', // In Node.js, `console.warn` maps to error. Prefer log instead
error: 'error',
} as const

Expand Down

0 comments on commit 7cc9a5a

Please sign in to comment.