Skip to content

Commit

Permalink
fix: correctly format logs in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jzunigax2 committed Aug 27, 2024
1 parent 55bfb79 commit 0b78a1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const winstonProdOptions: winston.LoggerOptions = {
handleExceptions: true,
format: combine(
timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }),
splat(),
printf((info) => {
return JSON.stringify({
hostname: serverHostname,
Expand Down

0 comments on commit 0b78a1c

Please sign in to comment.