Skip to content
Permalink
Browse files

[ux] Make debug mode work

  • Loading branch information...
mmalecki committed Aug 26, 2012
1 parent a28ddcc commit a25ad3d047fd54f6b6e25b059670c4d73d64f3b4
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/jitsu.js
@@ -6,6 +6,7 @@
*/

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

@@ -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);
}
};
});

0 comments on commit a25ad3d

Please sign in to comment.
You can’t perform that action at this time.