Skip to content

Commit

Permalink
fix: only show debug logs in 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
brett-vendia committed Feb 2, 2021
1 parent 5216d78 commit ad2cca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const logger = {
// TODO: allow users to set log level without having to provide the other log methods
level: process.env === 'development' ? 'debug' : 'error',
level: process.env.NODE_ENV === 'development' ? 'debug' : 'error',
error (message, additional) {
if (!logger.level.includes('debug', 'verbose', 'info', 'warn', 'error')) return
console.error({
Expand Down

0 comments on commit ad2cca3

Please sign in to comment.