-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: ensure that the sim events are logged; improve format of main logs #906
Conversation
55b60d9
to
6e6e4c0
Compare
@willemneal the PR looks great; could you please run it and add the "before" and "after" to the PR description ? |
caca016
to
ef4c0b0
Compare
@tsachiherman What do you mean by run? |
what is the difference shown in the logs before and after this change ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, should help out a bunch on e2e debugging of #855, thx!
It seems this PR only improves the logging of events for transaction submission. My comment at #855 (comment) was about preflight. After #878 the @willemneal Can you update that too? |
I think it wouldn't be possible to test it properly without a working&updated rpc... And I do agree with your point. |
Thanks @willemneal . I was thinking it may have been better to incorporate the events in the error itself (so that the caller controls when to print them), but it’s probably fine this way. |
Yeah, there is already logging in the file, but I agree a better logging at the api layer would be better. |
…gs (stellar#906) * fix: ensure that the sim events are logged; improve format of main logs * fix: ensure that logs go through log functions and rename for clarity * fix: only make user made events INFO and all diagnostic events TRACE * fix: ensure that events are logged with sim failure --------- Co-authored-by: Tsachi Herman <24438559+tsachiherman@users.noreply.github.com>
Before, the simulation logs were not logged if there was a failure and looked like:
After, the simulation logs are always logged and host events and diagnostic events are separated. Also the logs are formatted better.
Now:
Unfortunately as seen here the contract id is still a hash as this is just the debug output from the generated XDR.