Skip to content

Commit

Permalink
Removing the stringify method. Updating the package.json to use the m…
Browse files Browse the repository at this point in the history
…ocha binary included in node_modules. Updated to use chai.cofig instead of chai.Assertion
  • Loading branch information
David Tanner committed Jul 17, 2014
1 parent 5c125e4 commit 406289f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lib/winston-logstash.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ var Logstash = exports.Logstash = function (options) {

this.label = options.label || this.node_name;

this.stringify = options.stringify || function(obj) {
return JSON.stringify(obj, null, 2);
};

// Connection state
this.log_queue = [];
this.connected = false;
Expand Down Expand Up @@ -90,7 +86,6 @@ Logstash.prototype.log = function (level, msg, meta, callback) {
meta: meta,
timestamp: self.timestamp,
json: true,
stringify: this.stringify,
label: this.label
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./lib/winston-logstash",
"homepage": "https://github.com/jaakkos/winston-logstash",
"scripts": {
"test": "mocha test/*_test.js"
"test": "node_modules/mocha/bin/mocha test/*_test.js"
},
"engines": {
"node": ">=0.8.x"
Expand Down
2 changes: 1 addition & 1 deletion test/winston-logstash_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var chai = require('chai'),
timekeeper = require('timekeeper'),
freezed_time = new Date(1330688329321);

chai.Assertion.includeStack = true;
chai.config.includeStack = true;

require('../lib/winston-logstash');

Expand Down

0 comments on commit 406289f

Please sign in to comment.