Skip to content

Commit

Permalink
make log level configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Andykmcc committed Apr 25, 2024
1 parent 97c873d commit 454ac73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const logger = pino({
translateTime: true,
},
} : null,
level: process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'
});

export default logger;

0 comments on commit 454ac73

Please sign in to comment.