Skip to content

Commit

Permalink
fix(logger): change level to info in dev and prd (#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
SelmaBergstrand authored Oct 10, 2024
1 parent 2a546e4 commit 813887a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tavla/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { logger } from 'utils/logger'
const log = logger.child({ module: 'middleware' })
export function middleware(request: NextRequest) {
const response = NextResponse.next()
log.info({
log.trace({
request: {
browser: userAgent(request).browser,
device: userAgent(request).device,
Expand Down
2 changes: 1 addition & 1 deletion tavla/src/Shared/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultPinoConf = {

export const logger: Logger =
process.env.COMMON_ENV === 'prd' || process.env.COMMON_ENV === 'dev'
? pino({ level: 'warn', ...defaultPinoConf })
? pino({ level: 'info', ...defaultPinoConf })
: pino({
transport: {
target: 'pino-pretty',
Expand Down

0 comments on commit 813887a

Please sign in to comment.