Skip to content

Commit

Permalink
Update logger.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 8, 2024
1 parent 3966d97 commit 6819fe5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/src/common/logger.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import winston, { format, transports } from 'winston'

const production = process.env.NODE_ENV === 'production'
const logFormat = format.printf((info) => `${info.timestamp} ${info.level}: ${info.message}`)
const level = production ? 'info' : 'debug'
const level = process.env.NODE_ENV === 'production' ? 'info' : 'debug'

const logger = winston.createLogger({
level,
Expand Down

0 comments on commit 6819fe5

Please sign in to comment.