fix: hide debugging output when value is '0'

This commit is contained in:
2019-02-19 16:50:17 -07:00
parent 1863239c06
commit 8bdab1f9db

View File

@@ -35,7 +35,7 @@ const logger = {
console.error(wrapMessage(args));
},
debug(...args) {
if (!process.env.DEBUG) return;
if (process.env.DEBUG === '0' || !process.env.DEBUG) return;
console.log(wrapMessage(args));
},
};