Logger: Fix timestamp and format (#5571)
* remove no-op config of logger * add a test to check on the timestamp * add a test to verify that we get non json console loggging by default * configure transports to include timestamps in files * Add failing test to confirm that WinstonLoggerAdapter is not filtering on level. * actually fix the test to refelect the facth that this isn't the problem * Remove bogus date ranges that are now failing becuase we have timestamps.
This commit is contained in:
committed by
Diamond Lewis
parent
81ecf2fd74
commit
87da62bca2
@@ -66,10 +66,7 @@ describe('LoggerController', () => {
|
||||
});
|
||||
|
||||
it('can process an ascending query without throwing', done => {
|
||||
// Make mock request
|
||||
const query = {
|
||||
from: '2016-01-01Z00:00:00',
|
||||
until: '2016-01-01Z00:00:00',
|
||||
size: 5,
|
||||
order: 'asc',
|
||||
level: 'error',
|
||||
@@ -114,10 +111,7 @@ describe('LoggerController', () => {
|
||||
});
|
||||
|
||||
it('can process a descending query without throwing', done => {
|
||||
// Make mock request
|
||||
const query = {
|
||||
from: '2016-01-01Z00:00:00',
|
||||
until: '2016-01-01Z00:00:00',
|
||||
size: 5,
|
||||
order: 'desc',
|
||||
level: 'error',
|
||||
|
||||
Reference in New Issue
Block a user