From c9769a7d06ef96b2b17a572d98c7f9c94870db08 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Mon, 3 Mar 2014 15:52:01 -0800 Subject: [PATCH] modified log to use util inspect instead of JSON.stringify --- node-ipc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node-ipc.js b/node-ipc.js index 8ac3687..1b3f33f 100644 --- a/node-ipc.js +++ b/node-ipc.js @@ -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(