Remove GELF flag when capturing custom fields

* Logstash (which supports GELF) drops messages with this key
* There's no particular need to keep this key
This commit is contained in:
Skylar Lowery
2015-04-24 11:14:17 -06:00
parent 9fe32d06e3
commit 3cf1d697e8
2 changed files with 3 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ vows.describe('log4js gelfAppender').addBatch({
},
'should pick up the options': function(message) {
assert.equal(message.host, 'cheese');
assert.equal(message.GELF, void(0)); // make sure flag was removed
assert.equal(message._facility, 'nonsense');
assert.equal(message._every1, 'Hello every one'); // the default value
assert.equal(message._every2, 'Overwritten!'); // the overwritten value