mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
fix: Chain issues
This commit is contained in:
parent
27eb048ae4
commit
ed00780897
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class Logger {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
@ -136,7 +136,7 @@ class Logger {
|
|||
}
|
||||
|
||||
_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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue