Skip to content

Commit

Permalink
fix: improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Dec 16, 2024
1 parent 64d99eb commit 18530ab
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions packages/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,24 @@ const loggerConfig = {
translateTime: 'SYS:standard'
}
},
level: process.env.DEBUG === 'true' ? 'debug' : 'info'
level: process.env.DEBUG === 'true' ? 'debug' : 'info',
formatters: {
level: (label) => {
return {
level: label
}
}
}
},
production: {
level: 'info'
level: 'info',
formatters: {
level: (label) => {
return {
level: label
}
}
}
}
};

Expand Down

0 comments on commit 18530ab

Please sign in to comment.