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:
Arthur Cinader
2019-05-09 12:58:54 -07:00
committed by Diamond Lewis
parent 81ecf2fd74
commit 87da62bca2
4 changed files with 62 additions and 21 deletions

View File

@@ -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',