diff --git a/lib/sys.js b/lib/sys.js index e98686cca0..dbdd21bf52 100644 --- a/lib/sys.js +++ b/lib/sys.js @@ -28,7 +28,7 @@ exports.inspect = function (value) { if (value === undefined) return; try { - return JSON.stringify(value); + return JSON.stringify(value, undefined, 1); } catch (e) { // TODO make this recusrive and do a partial JSON output of object. if (e.message.search("circular")) {