Better handling of new Error(string) throughout the pipeline(s). Fixes #1338, #1486#1562
Conversation
kibertoad
reviewed
Jan 7, 2019
Contributor
|
Also tests are failing. |
…s most folks expect.
Member
Author
|
@kibertoad the previous test failure was by design since this depended on winstonjs/logform#69 being merged & published (now available in The comment about |
Member
Author
|
Decided to switch the order of the merge. Should address the concerns you mentioned @kibertoad. |
Contributor
|
LGTM! |
This was referenced Jan 9, 2019
Closed
|
Once this is merged |
Mizumaki
pushed a commit
to Mizumaki/winston
that referenced
this pull request
Jun 11, 2020
…s). Fixes winstonjs#1338, winstonjs#1486 (winstonjs#1562) * [tiny dist] Whitespace. package-lock.json * [test] Add E2E integration tests with logform `errors` format. * [test] 5:00pm. Press return. * [fix test] More E2E errors coverage. * [test] Test custom error properties. * [tiny doc] Make note of duplicate coverage in `logger`. Update minor formatting. * [test] All E2E tests work except for one... * [fix test doc] All 14 variations of handling `new Error()` now work as most folks expect. * [tiny] Fix up file header. * [dist] Bump to `logform@2.1.0` * [fix tiny] Whitespace. * s/req_id/requestId/ * [fix test] Address PR comments. Add test coverage for defaultMeta over .child(additionalMeta)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are 14 distinct entry-points for this. They are now tracked by
test/formats/errors.test.js:This also adds new semantics to
winstonrelated to (and also fixing) #1486. From the updatedREADME.md:This is need specifically for these use-cases:
The other cases are all handled by
winston.formats.errors()and depend on winstonjs/logform#69.