From 8e040aa9ccdf20d52a4f6e8ec56489de9d38db2b Mon Sep 17 00:00:00 2001 From: Guillaume Chauvet Date: Wed, 18 Nov 2015 15:39:00 +0100 Subject: [PATCH 1/3] Ignore generated log files --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d213f7d..0e29f74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ -*.log -*.log?? +**/**.log* build node_modules .bob/ From 1a38f44af3bc88585907618725b2c7d0109882a6 Mon Sep 17 00:00:00 2001 From: Guillaume Chauvet Date: Wed, 18 Nov 2015 16:08:56 +0100 Subject: [PATCH 2/3] Ignore other generated log files --- .gitignore | 3 +-- .npmignore | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 0e29f74..3c86cda 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ build node_modules .bob/ -test/streams/test-rolling-file-stream* -test/streams/test-rolling-stream-with-existing-files* +test/streams/test-rolling* .idea diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 7a3a12b..0000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.log -*.log?? From a4331b9a9686e704c85e2173b832a2fc73ae00b6 Mon Sep 17 00:00:00 2001 From: Guillaume Chauvet Date: Wed, 18 Nov 2015 16:09:24 +0100 Subject: [PATCH 3/3] Remove a useless assertion --- test/logstashUDP-test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/logstashUDP-test.js b/test/logstashUDP-test.js index cc706b4..14f7855 100644 --- a/test/logstashUDP-test.js +++ b/test/logstashUDP-test.js @@ -73,7 +73,6 @@ vows.describe('logstashUDP appender').addBatch({ }; assert.equal(JSON.stringify(json.fields), JSON.stringify(fields)); assert.equal(json.message, 'Log event #1'); - assert.equal(json.category, 'myCategory'); // Assert timestamp, up to hours resolution. var date = new Date(json['@timestamp']); assert.equal(