Skip to content

Commit

Permalink
Minor logging changes to debug easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Aug 30, 2024
1 parent 56f0ee1 commit b17556c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/enclave/components/batch_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ func (executor *batchExecutor) populateOutboundCrossChainData(ctx context.Contex

batch.Header.CrossChainTree = encodedTree
xchainHash = gethcommon.BytesToHash(tree.GetRoot())
executor.logger.Info("[CrossChain] adding messages to batch")
executor.logger.Debug("[CrossChain] adding messages to batch", "encodedTree", encodedTree)
}
batch.Header.CrossChainMessages = crossChainMessages
batch.Header.CrossChainRoot = xchainHash

executor.logger.Trace(fmt.Sprintf("Added %d cross chain messages to batch.",
executor.logger.Debug(fmt.Sprintf("Added %d cross chain messages to batch.",
len(batch.Header.CrossChainMessages)), log.CmpKey, log.CrossChainCmp)

batch.Header.LatestInboundCrossChainHash = block.Hash()
Expand Down
1 change: 1 addition & 0 deletions go/enclave/nodetype/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ func (s *sequencer) Close() error {
}

func (s *sequencer) ExportCrossChainData(ctx context.Context, fromSeqNo uint64, toSeqNo uint64) (*common.ExtCrossChainBundle, error) {
defer core.LogMethodDuration(s.logger, measure.NewStopwatch(), "ExportCrossChainData()", "fromSeqNo", fromSeqNo, "toSeqNo", toSeqNo)
bundle, err := ExportCrossChainData(ctx, s.storage, fromSeqNo, toSeqNo)
if err != nil {
return nil, err
Expand Down

0 comments on commit b17556c

Please sign in to comment.