Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logs to check if the second simulation fails #331

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

plusminushalf
Copy link
Contributor

No description provided.

)
} catch (err) {
this.logger.error({ error: err }, "Second simulations fail")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.logger.error({ error: err }, "Second simulations fail")
this.logger.error({ err }, "Second simulations fail")

we should use err for logging an Error: https://getpino.io/#/docs/api?id=mergingobject-object

If the object is of type Error, it is wrapped in an object containing a property err ({ err: mergingObject }). This allows for a unified error handling flow.

or just this.logger.error(err, "Second simulations fail")

@plusminushalf plusminushalf merged commit f7ccd43 into main Oct 18, 2024
6 of 7 checks passed
@plusminushalf plusminushalf deleted the add-second-simulation-logs branch October 18, 2024 14:51
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.

3 participants