Skip to content

Commit

Permalink
fix: fix default pino log level
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Aug 1, 2024
1 parent fa41804 commit d92508f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"next": "14.2.3",
"next-auth": "^5.0.0-beta.19",
"pino": "^9.3.2",
"pino-pretty": "^11.2.2",
"react": "^18",
"react-dom": "^18",
"react-hot-toast": "^2.4.1",
Expand All @@ -43,6 +42,7 @@
"eslint-config-next": "14.2.3",
"jsdom": "^24.1.0",
"openapi-typescript": "^6.7.6",
"pino-pretty": "^11.2.2",
"postcss": "^8",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.6.5",
Expand Down
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import pino, { Logger } from 'pino';
export const logger: Logger =
process.env['NODE_ENV'] === 'production'
? // JSON in production
pino({ level: 'WARN' })
pino({ level: 'info' })
: // Pretty print in development
pino({
transport: {
Expand Down

0 comments on commit d92508f

Please sign in to comment.