Skip to content

Commit

Permalink
dcrd: Switch getdata log from trace to debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and davecgh committed May 29, 2024
1 parent 56caf40 commit ce6cc73
Showing 1 changed file with 8 additions and 6 deletions.
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

0 comments on commit ce6cc73

Please sign in to comment.