You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Flowser app, we have a logs view that shows all historic logs that ever happened (in the current emulator session). But when you execute a transaction in isolation, you usually only care about that transaction's logs and not all the historic ones.
This change would allow us to show currently executed transaction logs within that transaction's info view (related to this feature we just built: onflowser/flowser#170).
The text was updated successfully, but these errors were encountered:
I think this is a nice idea, can be implemented, but maybe we can put it behind a flag. txId is pretty long and takes a lot of space ( or maybe we can put it after the message ) what do you think @sideninja ?
Issue To Be Solved
Let's say we have a transaction that uses the
log()
function to print something.When that transaction is executed on the local emulator blockchain, the produced log outputs are displayed as emulator (Flow CLI) logs like so:
Problem: There is no way to tie a log entry to the transaction that emitted it. I believe this would be useful for many reasons:
Suggest A Solution
We could solve this by including the transaction ID in each Cadence log entry, like so:
... or we could include only a subset ID to make it easier to view in the terminal:
Context
In the Flowser app, we have a logs view that shows all historic logs that ever happened (in the current emulator session). But when you execute a transaction in isolation, you usually only care about that transaction's logs and not all the historic ones.
This change would allow us to show currently executed transaction logs within that transaction's info view (related to this feature we just built: onflowser/flowser#170).
The text was updated successfully, but these errors were encountered: