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

fix: improve stratum logs #1049

Merged
merged 1 commit into from
Jun 10, 2024
Merged

fix: improve stratum logs #1049

merged 1 commit into from
Jun 10, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Jun 4, 2024

Motivation

We're receiving some calls to the stratum API with wrong arguments, but current code doesn't allow us to investigate it. This PRs adds logs that will help debugging this. See https://github.com/HathorNetwork/on-call-incidents/issues/176.

Acceptance Criteria

  • Add logs and try to convert stratum params to a dict.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco added the bug Something isn't working label Jun 4, 2024
@glevco glevco self-assigned this Jun 4, 2024
@glevco glevco marked this pull request as ready for review June 4, 2024 14:47
@glevco glevco requested review from jansegre and msbrogli as code owners June 4, 2024 14:47
@glevco glevco force-pushed the fix/improve-stratum-logs branch from fd2712c to b19809e Compare June 4, 2024 14:49
hathor/stratum/stratum.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.88%. Comparing base (1d0b439) to head (5d7ba93).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1049      +/-   ##
==========================================
- Coverage   84.90%   84.88%   -0.03%     
==========================================
  Files         300      300              
  Lines       22943    22944       +1     
  Branches     3470     3471       +1     
==========================================
- Hits        19479    19475       -4     
- Misses       2775     2779       +4     
- Partials      689      690       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco force-pushed the fix/improve-stratum-logs branch from 1f595d8 to 493586b Compare June 10, 2024 19:27
@glevco glevco force-pushed the fix/improve-stratum-logs branch from 493586b to 5d7ba93 Compare June 10, 2024 20:36
@glevco glevco merged commit 71b079a into master Jun 10, 2024
12 checks passed
@glevco glevco deleted the fix/improve-stratum-logs branch June 10, 2024 21:48
This was referenced Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants