Skip to content

Commit 7e92060

Browse files
committed
Modify the checking
1 parent 51fffa0 commit 7e92060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
if (hasProcess()) {
5050
debugStr = process.env[DEBUG_STR];
5151
}
52-
52+
5353
if (debugStr) {
5454
debugKeys = debugStr.split(',').map(function (val) {
5555
return val.trim();
5656
});
5757
}
5858

59-
if (debugKeys.indexOf('*') !== -1 || debugKeys.indexOf(this._key) !== -1) {
59+
if (debugStr && (debugKeys.indexOf('*') !== -1 || debugKeys.indexOf(this._key) !== -1)) {
6060
return true;
6161
}
6262

0 commit comments

Comments
 (0)