gulp-util icon indicating copy to clipboard operation
gulp-util copied to clipboard

potential for black-holing log messages via transitive dependency on gulplog

Open ischneider opened this issue 9 years ago • 7 comments

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.

ischneider avatar Jan 14 '16 19:01 ischneider