Skip to content

Commit

Permalink
[ux] Make debug mode work
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Aug 26, 2012
1 parent a28ddcc commit a25ad3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/jitsu.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/ */


var path = require('path'), var path = require('path'),
util = require('util'),
colors = require('colors'), colors = require('colors'),
flatiron = require('flatiron'); flatiron = require('flatiron');


Expand Down Expand Up @@ -241,10 +242,7 @@ jitsu.setup = function (callback) {
jitsu[k].on('debug::response', debug); jitsu[k].on('debug::response', debug);
function debug (data) { function debug (data) {
if (jitsu.argv.debug || jitsu.config.get('debug')) { if (jitsu.argv.debug || jitsu.config.get('debug')) {
// util.inspect(data, false, null, true).split('\n').forEach(jitsu.log.debug);
// TODO: replace with custom logger method
//
// console.log(data);
} }
}; };
}); });
Expand Down

0 comments on commit a25ad3d

Please sign in to comment.