gimm / gulp-express

gulp plugin for express
56 stars 26 forks source link

Debug module not logging data #31

Closed nathanbuchar closed 9 years ago

nathanbuchar commented 9 years ago

Since the switch to using Debug (c6ef9d2), the node process is no longer logging data into Terminal.

Data is passed correctly into the local logData method—console.log(data.trim()) confirms this—however somewhere along the lines, the Debug module is not outputting the data.

gimm commented 9 years ago

You need to set DEBUG environment variable in order to get it work, that's how DEBUG works.

nathanbuchar commented 9 years ago

I do in fact already have DEBUG set to true.

echo $DEBUG
--> "true"

Although environment variables are set to strings, not real booleans. So to be absolutely certain that the environment variable is getting through, I also hard-coded the environment variable into the top of gulpfile.js

process.env.DEBUG = true;
process.env.debug = true;

Still no dice

Edit: finger slipped and hit "close and comment"

nathanbuchar commented 9 years ago

Oh, I see how Debug works now. It needs the process namespace(s), not a boolean.

export DEBUG=gulp:express