-
Notifications
You must be signed in to change notification settings - Fork 267
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
Conversation
This printf statement was accidentally introduced in celestiaorg#781 It should be removed to avoid log spam when developers run `make test`
@@ -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) |
There was a problem hiding this comment.
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
...
Codecov Report
@@ 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
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This printf statement was accidentally introduced in celestiaorg#781 It should be removed to avoid log spam when developers run `make test`
This printf statement was accidentally introduced in #781
It should be removed to avoid log spam when developers run
make test