modified log to use util inspect instead of JSON.stringify

This commit is contained in:
Brandon Miller 2014-03-03 15:52:01 -08:00
parent 7d8ecd1f7e
commit c9769a7d06

View file

@ -1,4 +1,5 @@
var os = require('os'),
util = require('util'),
colors = require('colors'),
pubsub = require('event-pubsub'),
eventParser = require('./lib/eventParser.js'),
@ -52,7 +53,7 @@ function log(){
if(typeof args[i] != 'object')
continue;
args[i]=JSON.stringify(args[i]);
args[i]=util.inspect(args[i],{colors:true});
}
console.log(