good-hapi-graylog2
Advanced tools
Comparing version 1.0.1 to 1.0.2
const Stream = require('stream'); | ||
const graylog2 = require('graylog2'); | ||
const CircularJSON = require('circular-json'); | ||
@@ -17,3 +18,3 @@ class GoodHapiGraylog extends Stream.Writable { | ||
_write(data, encoding, callback) { | ||
const dataString = JSON.stringify(data); | ||
const dataString = CircularJSON.stringify(data); | ||
this.client.info(dataString); | ||
@@ -20,0 +21,0 @@ callback(); |
{ | ||
"name": "good-hapi-graylog2", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "git://github.com/gleip/good-hapi-graylog2", | ||
@@ -10,2 +10,3 @@ "description": "Graylog GELF broadcasting for Good process monitor", | ||
"dependencies": { | ||
"circular-json": "^0.3.3", | ||
"graylog2": "^0.1.3", | ||
@@ -12,0 +13,0 @@ "stream": "0.0.2" |
3690
22
4
+ Addedcircular-json@^0.3.3
+ Addedcircular-json@0.3.3(transitive)