potential for black-holing log messages via transitive dependency on gulplog
- Lingua principale
- JavaScript
- Stelle
- 408
- Fork
- 112
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
`gulp-util.log` checks for `hasGulplog` on module initialization and if present, defers logging to `gulplog.info`, which in turn will eat any messages below `error` (I believe) unless there is explicitly an event handler for the other levels (info, warn, etc.).
This can happen 'accidentally' if a transitive dependency uses gulplog.
It _seems_ like the reasonable thing to do is to use `gulplog.error` to ensure all logging is output properly.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by tracing gulp-util.log's module initialization and its hasGulplog path into gulplog.info. Reproduce the case where a transitive dependency loads gulplog and lower-severity messages disappear, then verify that the chosen logging behavior preserves output for those messages.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100