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

Automatically log return values of scripts #754

Open
alxocity opened this issue Aug 29, 2020 · 6 comments
Open

Automatically log return values of scripts #754

alxocity opened this issue Aug 29, 2020 · 6 comments
Labels
Feature A new user feature or a new package API Feedback

Comments

@alxocity
Copy link

Issue To Be Solved

Automatically log return values of scripts so since it would be nice to see the value in the log without having an extra log statement before every return statement.

@alxocity alxocity added Feature A new user feature or a new package API Feedback labels Aug 29, 2020
@bjartek
Copy link
Contributor

bjartek commented Aug 29, 2020

More loglevels and verbosity options would definately be nice

@turbolent turbolent removed their assignment Sep 4, 2020
@turbolent
Copy link
Member

Agreed, it would be nice to have levels and a way to adjust it in the host environment (Emulator, Playground, etc.), too

@turbolent
Copy link
Member

@alxocity Were you mainly thinking of the emulator here?

@bjartek
Copy link
Contributor

bjartek commented Sep 17, 2020

If possible it would be nice to fetch log events associated with a transaction. But depending on the architecture I can see that it could be difficult.

@turbolent
Copy link
Member

Let's move this to the emulator. Could maybe be something like a --log-script-results flag

@turbolent turbolent transferred this issue from onflow/cadence Sep 26, 2024
@bluesign
Copy link
Collaborator

ok I see 2 tasks here :

  • one is to log script result to emulator stdout ( as @alxocity mentioned ) @turbolent do we need flag for this ? maybe I can stuck it inside verbose flag ?
  • another one is to log, programLog output to logger ( as @bjartek mentioned) ( log statements called from cadence )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new user feature or a new package API Feedback
Projects
Status: No status
Development

No branches or pull requests

4 participants