Skip to content

Commit

Permalink
Node: CCQ logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Nov 6, 2024
1 parent 7247a0f commit 4e70938
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions node/pkg/p2p/ccq_p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (ccq *ccqP2p) run(
ps, err := pubsub.NewGossipSub(ctx, ccq.h,
// We only want to accept subscribes from peers in the allow list.
pubsub.WithPeerFilter(func(peerID peer.ID, topic string) bool {
ccq.logger.Info("peer request received", zap.Any("peerID", peerID), zap.String("topic", topic))
if len(ccq.allowedPeers) == 0 {
return true
}
Expand Down
6 changes: 3 additions & 3 deletions node/pkg/watchers/evm/ccq.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (w *Watcher) ccqHandleEthCallQueryRequest(ctx context.Context, queryRequest

// Verify that the block read was successful.
if err := w.ccqVerifyBlockResult(blockError, blockResult); err != nil {
w.ccqLogger.Error("failed to verify block for eth_call query",
w.ccqLogger.Debug("failed to verify block for eth_call query",
zap.String("requestId", requestId),
zap.String("block", block),
zap.Any("batch", batch),
Expand Down Expand Up @@ -388,7 +388,7 @@ func (w *Watcher) ccqHandleEthCallByTimestampQueryRequest(ctx context.Context, q

// Verify the following block read was successful.
if err := w.ccqVerifyBlockResult(nextBlockError, nextBlockResult); err != nil {
w.ccqLogger.Error("failed to verify next block for eth_call_by_timestamp query",
w.ccqLogger.Debug("failed to verify next block for eth_call_by_timestamp query",
zap.String("requestId", requestId),
zap.String("block", block),
zap.String("nextBlock", nextBlock),
Expand Down Expand Up @@ -557,7 +557,7 @@ func (w *Watcher) ccqHandleEthCallWithFinalityQueryRequest(ctx context.Context,

// Verify that the block read was successful.
if err := w.ccqVerifyBlockResult(blockError, blockResult); err != nil {
w.ccqLogger.Error("failed to verify block for eth_call_with_finality query",
w.ccqLogger.Debug("failed to verify block for eth_call_with_finality query",
zap.String("requestId", requestId),
zap.String("block", block),
zap.Any("batch", batch),
Expand Down

0 comments on commit 4e70938

Please sign in to comment.