modified log to use util inspect instead of JSON.stringify
This commit is contained in:
parent
7d8ecd1f7e
commit
c9769a7d06
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue