Skip to content

Conversation

addaleax
Copy link
Collaborator

We can only use EJSON-serializable data in the log attributes.
Error objects are not part of that; we need to use the message
of the Error, if one is present, instead.

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

We can only use EJSON-serializable data in the log attributes.
Error objects are not part of that; we need to use the message
of the Error, if one is present, instead.
@addaleax addaleax merged commit 0d3dc85 into main Feb 10, 2022
@addaleax addaleax deleted the sdc-error-message branch February 10, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants