Skip to content

Commit

Permalink
fix(2021): reduce noise in runtime logs
Browse files Browse the repository at this point in the history
  • Loading branch information
amclin committed Dec 17, 2021
1 parent e8f9dfa commit 9e990a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 2021/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Suppress logging
if (!process.env.DEBUG) {
console.debug = () => {}
console.log = () => {}
}

module.exports = console
// module.exports = {
// debug: console.debug,
// info: console.info,
// log: console.log,
// warn: console.warn,
// error: console.error
// }

0 comments on commit 9e990a7

Please sign in to comment.