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

network: add logs for different RelayTx errors #1757

Merged
merged 1 commit into from
Feb 18, 2021
Merged

network: add logs for different RelayTx errors #1757

merged 1 commit into from
Feb 18, 2021

Conversation

AnnaShaleva
Copy link
Member

@AnnaShaleva AnnaShaleva commented Feb 17, 2021

It's hard to distinguish validation errors and users need more specific data.

pkg/network/server.go Outdated Show resolved Hide resolved
pkg/network/server.go Outdated Show resolved Hide resolved
pkg/rpc/server/server.go Outdated Show resolved Hide resolved
pkg/network/server.go Outdated Show resolved Hide resolved
pkg/network/server.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Feb 18, 2021

Codecov Report

Merging #1757 (d869774) into master (608df7f) will increase coverage by 0.13%.
The diff coverage is 63.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1757      +/-   ##
==========================================
+ Coverage   82.52%   82.65%   +0.13%     
==========================================
  Files         272      271       -1     
  Lines       22152    22115      -37     
==========================================
- Hits        18281    18280       -1     
+ Misses       2745     2710      -35     
+ Partials     1126     1125       -1     
Impacted Files Coverage Δ
pkg/rpc/server/server.go 78.60% <50.00%> (+0.32%) ⬆️
pkg/network/server.go 72.91% <69.23%> (+1.32%) ⬆️
pkg/consensus/consensus.go 70.57% <0.00%> (+0.60%) ⬆️
pkg/services/notary/notary.go 94.17% <0.00%> (+1.05%) ⬆️
pkg/services/oracle/request.go 57.37% <0.00%> (+1.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 608df7f...94430ef. Read the comment docs.

pkg/network/server.go Outdated Show resolved Hide resolved
We don't need to wrap different core errors in server. Also it would be
good to provede more error info to the user.
@roman-khimov roman-khimov added this to the v0.94.0 milestone Feb 18, 2021
@roman-khimov roman-khimov merged commit fe918e2 into master Feb 18, 2021
@roman-khimov roman-khimov deleted the logs branch February 18, 2021 10:13
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