Skip to content

Commit

Permalink
Merge pull request #3 from lnco-epfl/remove-pino-pretty
Browse files Browse the repository at this point in the history
Remove pino-pretty in server.ts because of transport issue
  • Loading branch information
ymijsters authored Sep 6, 2024
2 parents ebdde40 + 751a946 commit 9c85add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ const start = async () => {
const instance = fastify({
// allows to remove logging of incomming requests
// can not be set using an environnement variable
disableRequestLogging: false,
logger: {
disableRequestLogging: true,
/* logger: {
// Do not use pino-pretty in production
transport: PROD
? undefined
: {
target: 'pino-pretty',
},
level: process.env.LOG_LEVEL,
},
}, */
ajv: {
customOptions: {
// This allow routes that take array to correctly interpret single values as an array
Expand Down

0 comments on commit 9c85add

Please sign in to comment.