File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ function logEvents(gulpInst) {
1313 gulpInst . on ( 'start' , function ( evt ) {
1414 // TODO: batch these
1515 // so when 5 tasks start at once it only logs one time with all 5
16- log . info ( 'Starting' , '\'' + chalk . cyan ( evt . name ) + '\'...' ) ;
16+ var level = evt . branch ? 'debug' : 'info' ;
17+ log [ level ] ( 'Starting' , '\'' + chalk . cyan ( evt . name ) + '\'...' ) ;
1718 } ) ;
1819
1920 gulpInst . on ( 'stop' , function ( evt ) {
2021 var time = prettyTime ( evt . duration ) ;
21- log . info (
22+ var level = evt . branch ? 'debug' : 'info' ;
23+ log [ level ] (
2224 'Finished' , '\'' + chalk . cyan ( evt . name ) + '\'' ,
2325 'after' , chalk . magenta ( time )
2426 ) ;
@@ -27,7 +29,8 @@ function logEvents(gulpInst) {
2729 gulpInst . on ( 'error' , function ( evt ) {
2830 var msg = formatError ( evt ) ;
2931 var time = prettyTime ( evt . duration ) ;
30- log . error (
32+ var level = evt . branch ? 'debug' : 'error' ;
33+ log [ level ] (
3134 '\'' + chalk . cyan ( evt . name ) + '\'' ,
3235 chalk . red ( 'errored after' ) ,
3336 chalk . magenta ( time )
You can’t perform that action at this time.
0 commit comments