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

dcrd: Switch getdata log from trace to debug. #3329

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,9 @@ func (sp *serverPeer) handleServeGetData(invVects []*wire.InvVect,
txHash := &iv.Hash
tx, err := sp.server.txMemPool.FetchTransaction(txHash)
if err != nil {
peerLog.Tracef("Unable to fetch tx %v from transaction pool: %v",
txHash, err)
peerLog.Debugf("Unable to fetch tx %v from the "+
"transaction pool for %v: %v", txHash,
sp, err)
break
}
dataMsg = tx.MsgTx()
Expand All @@ -693,8 +694,8 @@ func (sp *serverPeer) handleServeGetData(invVects []*wire.InvVect,
blockHash := &iv.Hash
block, err := sp.server.chain.BlockByHash(blockHash)
if err != nil {
peerLog.Tracef("Unable to fetch requested block hash %v: %v",
blockHash, err)
peerLog.Debugf("Unable to fetch block hash %v "+
"for %v: %v", blockHash, sp, err)
break
}
dataMsg = block.MsgBlock()
Expand All @@ -721,8 +722,9 @@ func (sp *serverPeer) handleServeGetData(invVects []*wire.InvVect,
mixHash := &iv.Hash
msg, err := sp.server.mixMsgPool.Message(mixHash)
if err != nil {
peerLog.Tracef("Unable to fetch requested mix message %v: %v",
mixHash, err)
peerLog.Debugf("Unable to fetch mix message %v ",
"from the mix pool for %v: %v", mixHash,
sp, err)
break
}
dataMsg = msg
Expand Down
Loading