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

Upgrade flow-go (to include FVM logging API change) #195

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

janezpodhostnik
Copy link
Contributor

@janezpodhostnik janezpodhostnik commented Aug 30, 2022

Description

There was a change in the logging API for the FVM: onflow/flow-go#3117

This PR upgrades flow-go to that version


For contributor use:

  • Targeted PR against master branch
  • Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the GitHub PR explorer
  • Added appropriate labels

@janezpodhostnik janezpodhostnik self-assigned this Aug 30, 2022
bors bot added a commit to onflow/flow-go that referenced this pull request Sep 1, 2022
3117: [FVM] Cleanup fvm logging r=janezpodhostnik a=janezpodhostnik

Setup the context log in the computer to already have transaction fields on it.

Use only the logger from the FVM context in the FVM.

This is a breaking change for the emulator onflow/flow-emulator#195
This might also break any code dependent on the logs as we were previously not consistent and used both "tx_id"  and "txHash" to log the tx id. Grafana dashboards come to mind.



Co-authored-by: Janez Podhostnik <janez.podhostnik@gmail.com>
bors bot added a commit to onflow/flow-go that referenced this pull request Sep 1, 2022
3117: [FVM] Cleanup fvm logging r=janezpodhostnik a=janezpodhostnik

Setup the context log in the computer to already have transaction fields on it.

Use only the logger from the FVM context in the FVM.

This is a breaking change for the emulator onflow/flow-emulator#195
This might also break any code dependent on the logs as we were previously not consistent and used both "tx_id"  and "txHash" to log the tx id. Grafana dashboards come to mind.



Co-authored-by: Janez Podhostnik <janez.podhostnik@gmail.com>
@janezpodhostnik janezpodhostnik marked this pull request as ready for review September 2, 2022 14:31
@codecov-commenter
Copy link

Codecov Report

Merging #195 (2d92df2) into master (cdd177e) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master     #195   +/-   ##
=======================================
  Coverage   49.46%   49.46%           
=======================================
  Files          30       30           
  Lines        2434     2434           
=======================================
  Hits         1204     1204           
  Misses       1086     1086           
  Partials      144      144           
Flag Coverage Δ
unittests 49.46% <50.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
blockchain.go 75.51% <50.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@janezpodhostnik janezpodhostnik merged commit 3a77c8a into master Sep 8, 2022
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