Skip to content

Commit 014f9db

Browse files
feat(utilities): include log level suppression in daily template
1 parent f618b49 commit 014f9db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

2020/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Suppress logging
22
if (!process.env.DEBUG) {
33
console.debug = () => {}
4-
console.info = () => {}
4+
console.log = () => {}
55
}
66

77
module.exports = console

plop-templates/day/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// eslint-disable-next-line no-unused-vars
2+
const console = require('../helpers')
13
require('./solution')

0 commit comments

Comments
 (0)