potential for black-holing log messages via transitive dependency on gulplog
See original GitHub issuegulp-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.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Correct and I can verify that using the
gulp
executable fromgulp-cli
produces the desired behavior, i.e.gulp-util.log
produces output even whengulplog
is present.This is fine longer term, but it seems like a potential problem for the unaware - case in point: me and my time lost 😦
Super simple example
When run using global gulp, no ‘foobar’. When using locally installed
gulp
fromgulp-cli
, ‘foobar’ is logged.Thanks 😄
This problem won’t be solved until we get the community transferred off gulp installed globally and installing gulp-cli instead ☹️