@mimik/sumologic-winston-logger 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,6 @@ logger.info('this is a test', { user: complexObject }, '12345678');
|
|
|
29
29
|
logger.info('this is a test', { user: complexObject }, '12345678');
|
|
30
30
|
logger.error('this is an error message', { user: complexObject, error, correlationId: '123344' }, '34567');
|
|
31
31
|
logger.error('this is an error message', { user: complexObject, error, correlationId: '123344' }, '34567');
|
|
32
|
-
// console.log('----------')
|
|
33
32
|
logger.error('this is an error message', { user: complexObject, error, correlationId: '123344' }, '34567');
|
|
34
33
|
logger.error('this is an error message', { user: complexObject, error, correlationId: '123344' }, '34567');
|
|
35
34
|
logger.info('this is a test', { user: complexObject }, '12345678');
|
|
@@ -39,5 +38,4 @@ logger.error('this is an error message', { user: complexObject, error, correlati
|
|
|
39
38
|
logger.error('this is an error message', { user: complexObject, error, correlationId: '123344' }, '34567');
|
|
40
39
|
logger.flushAndExit(ISSUE_EXIT);
|
|
41
40
|
// setTimeout(() => console.log('done'), 4000);
|
|
42
|
-
// console.log('----------')
|
|
43
41
|
// logger.error(error, { user: complexObject }, '6795949');
|
package/package.json
CHANGED
package/test/logger.spec.js
CHANGED
|
@@ -55,7 +55,7 @@ describe('sumologic-winston-logger Unit Tests', function LoggerTests() {
|
|
|
55
55
|
logger.flushAndExit(OK_EXIT);
|
|
56
56
|
done();
|
|
57
57
|
});
|
|
58
|
-
before(done => setTimeout(done, FLUSH_TIMEOUT)); // adding a delay to make sure that the
|
|
58
|
+
before(done => setTimeout(done, FLUSH_TIMEOUT)); // adding a delay to make sure that the flush is done
|
|
59
59
|
it('Cleanup', (done) => {
|
|
60
60
|
process.exit.restore();
|
|
61
61
|
done();
|
package/test/loggerProd.spec.js
CHANGED
|
@@ -23,7 +23,7 @@ const user = {
|
|
|
23
23
|
}],
|
|
24
24
|
avatar: 'https://mts.mimik360.com/mTS/v1/thumbnails/9a86220f-9d76-48e4-98a3-1a51c22fc49a',
|
|
25
25
|
createdAt: '2019-07-12T16:32:21.709Z',
|
|
26
|
-
email: '
|
|
26
|
+
email: 'test@test.com',
|
|
27
27
|
externalIds: [
|
|
28
28
|
'2584799985283928064',
|
|
29
29
|
],
|
|
@@ -82,7 +82,7 @@ describe('sumologic-winston-logger prod Unit Tests', function LoggerTests() {
|
|
|
82
82
|
logger.flushAndExit(OK_EXIT);
|
|
83
83
|
done();
|
|
84
84
|
});
|
|
85
|
-
before(done => setTimeout(done, FLUSH_TIMEOUT)); // adding a delay to make sure that the
|
|
85
|
+
before(done => setTimeout(done, FLUSH_TIMEOUT)); // adding a delay to make sure that the flush is done
|
|
86
86
|
it('Cleanup', (done) => {
|
|
87
87
|
process.exit.restore();
|
|
88
88
|
done();
|