Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ux] Make debug mode work
  • 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
Expand Up @@ -6,6 +6,7 @@
*/

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

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

0 comments on commit a25ad3d

Please sign in to comment.