-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
potential for black-holing log messages via transitive dependency on gulplog #237
Comments
|
Correct and I can verify that using the 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 Thanks 😄 |
Is the solution for |
It could be? Unfortunately, I've moved on and no longer use gulp in my day-to-day work. |
I'd like to close this issue following the deprecation of /cc @phated |
Yes, this is still a |
This problem won't be solved until we get the community transferred off gulp installed globally and installing gulp-cli instead |
@phated Is this issue in gulp v4? Only v3? Is there anything we can do for this issue, though this is on the project board of |
I think this is always going to be a problem. It's on the "nice to have" for v5 in case someone comes up with a good solution. |
gulp-util.log
checks forhasGulplog
on module initialization and if present, defers logging togulplog.info
, which in turn will eat any messages belowerror
(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.The text was updated successfully, but these errors were encountered: