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: remove debug printf statement #851

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Oct 9, 2022

This printf statement was accidentally introduced in #781

It should be removed to avoid log spam when developers run make test

This printf statement was accidentally introduced in
celestiaorg#781

It should be removed to avoid log spam when developers run `make test`
@rootulp rootulp added bug Something isn't working chore optional label for items that follow the `chore` conventional commit labels Oct 9, 2022
@rootulp rootulp self-assigned this Oct 9, 2022
@@ -109,7 +108,6 @@ func txSharePosition(txs types.Txs, txIndex uint64) (startSharePos, endSharePos

startSharePos = txShareIndex(prevTxTotalLen)
endSharePos = txShareIndex(endOfCurrentTxLen)
fmt.Printf("prevTxTotalLen: %d, endOfCurrentTxLen: %d, startSharePos: %d, endSharePos %d, currentTxTotalLen %d\n", prevTxTotalLen, endOfCurrentTxLen, startSharePos, endSharePos, currentTxTotalLen)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[informational] when you run make test the output gets polluted with many lines of the form

ok  	github.com/celestiaorg/celestia-app/pkg/inclusion	(cached)
prevTxTotalLen: 0, endOfCurrentTxLen: 82, startSharePos: 0, endSharePos 0, currentTxTotalLen 82
prevTxTotalLen: 82, endOfCurrentTxLen: 172, startSharePos: 0, endSharePos 0, currentTxTotalLen 90
prevTxTotalLen: 172, endOfCurrentTxLen: 562, startSharePos: 0, endSharePos 1, currentTxTotalLen 390
prevTxTotalLen: 562, endOfCurrentTxLen: 697, startSharePos: 1, endSharePos 1, currentTxTotalLen 135
prevTxTotalLen: 697, endOfCurrentTxLen: 956, startSharePos: 1, endSharePos 1, currentTxTotalLen 259
prevTxTotalLen: 956, endOfCurrentTxLen: 1004, startSharePos: 1, endSharePos 2, currentTxTotalLen 48
prevTxTotalLen: 1004, endOfCurrentTxLen: 1081, startSharePos: 2, endSharePos 2, currentTxTotalLen 77
prevTxTotalLen: 1081, endOfCurrentTxLen: 1350, startSharePos: 2, endSharePos 2, currentTxTotalLen 269
prevTxTotalLen: 1350, endOfCurrentTxLen: 1481, startSharePos: 2, endSharePos 2, currentTxTotalLen 131
prevTxTotalLen: 1481, endOfCurrentTxLen: 1635, startSharePos: 2, endSharePos 3, currentTxTotalLen 154
prevTxTotalLen: 1635, endOfCurrentTxLen: 1818, startSharePos: 3, endSharePos 3, currentTxTotalLen 183
...

@rootulp rootulp requested a review from rach-id October 9, 2022 05:28
@codecov-commenter
Copy link

Codecov Report

Merging #851 (93534d2) into main (a3830e3) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #851      +/-   ##
==========================================
- Coverage   25.59%   25.58%   -0.01%     
==========================================
  Files          75       75              
  Lines        9273     9272       -1     
==========================================
- Hits         2373     2372       -1     
  Misses       6677     6677              
  Partials      223      223              
Impacted Files Coverage Δ
pkg/prove/proof.go 83.56% <ø> (-0.12%) ⬇️

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

@rootulp rootulp merged commit 9cc469c into celestiaorg:main Oct 9, 2022
@rootulp rootulp deleted the rp/remove-print branch October 9, 2022 16:20
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
This printf statement was accidentally introduced in
celestiaorg#781

It should be removed to avoid log spam when developers run `make test`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chore optional label for items that follow the `chore` conventional commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants