We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51fffa0 commit 7e92060Copy full SHA for 7e92060
1 file changed
src/core/Logger.js
@@ -49,14 +49,14 @@
49
if (hasProcess()) {
50
debugStr = process.env[DEBUG_STR];
51
}
52
-
+
53
if (debugStr) {
54
debugKeys = debugStr.split(',').map(function (val) {
55
return val.trim();
56
});
57
58
59
- if (debugKeys.indexOf('*') !== -1 || debugKeys.indexOf(this._key) !== -1) {
+ if (debugStr && (debugKeys.indexOf('*') !== -1 || debugKeys.indexOf(this._key) !== -1)) {
60
return true;
61
62
0 commit comments