mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
Merge pull request #10 from electron/felixr-fix-chain-issues
fix: Chain issues
This commit is contained in:
commit
6424f61832
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class Logger {
|
||||||
}
|
}
|
||||||
|
|
||||||
isVisible (level) {
|
isVisible (level) {
|
||||||
return (this.level && this.level.index <= (this.#levels.get(level) && this.#levels.get(level).index)) || -1
|
return (this.level && this.level.index <= (this.#levels.get(level) && this.#levels.get(level).index) || -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
_onLog (...args) {
|
_onLog (...args) {
|
||||||
|
@ -136,7 +136,7 @@ class Logger {
|
||||||
}
|
}
|
||||||
|
|
||||||
_log (levelId, msgPrefix, ...args) {
|
_log (levelId, msgPrefix, ...args) {
|
||||||
if (!this.isVisible(levelId) || (this.#stream && typeof this.#stream.write !== 'function')) {
|
if (!this.isVisible(levelId) || (!this.#stream || typeof this.#stream.write !== 'function')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue