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

feat: add a logger hook #1574

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

hugocaillard
Copy link
Collaborator

Description

The current way to retrieve the result of a (print <value>) function call in the tests, is to retrieve the events.
But, events are not emitted in read only functions calls or in failing public functions calls. Which is when logs are the most needed.

By using an evalhook, we can retrieve the value of the printed value and return it to the sdk so that it can be logged in JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

1 participant