Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add Bunyan standard serializer #3838

Closed
2snEM6 opened this issue Jun 18, 2019 · 0 comments
Closed

Add Bunyan standard serializer #3838

2snEM6 opened this issue Jun 18, 2019 · 0 comments
Assignees

Comments

@2snEM6
Copy link
Contributor

2snEM6 commented Jun 18, 2019

Expected behavior

To be able to log error objects along with metadata and a description message, by following this format:
const anErrorInstance = new Error('Storage read error'); logger.error({err: anErrorInstance, blockId: '1234', 'Failure when generating a new block'}`

This produces the following output:

image

Actual behavior

When trying to log error object along with metadata and a description message, errors are not being properly printed.

Steps to reproduce

Which version(s) does this affect? (Environment, OS, etc...)

development

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants