Skip to content

Commit

Permalink
op-node/rollup/derive: add info logging (#13753)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianst authored and scharissis committed Jan 15, 2025
1 parent d987ba1 commit 0347c66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions op-node/rollup/derive/channel_assembler.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (ca *ChannelAssembler) NextRawChannel(ctx context.Context) ([]byte, error)
if frame.FrameNumber == 0 {
ca.metrics.RecordHeadChannelOpened()
ca.channel = NewChannel(frame.ID, origin, true)
lgr.Info("created new channel")
}
if frame.FrameNumber > 0 && ca.channel == nil {
lgr.Warn("dropping non-first frame without channel",
Expand Down
4 changes: 2 additions & 2 deletions op-node/rollup/derive/channel_in_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
if err != nil {
return nil, err
}
batch.LogContext(cr.log).Debug("decoded singular batch from channel", "stage_origin", cr.Origin())
batch.LogContext(cr.log).Info("decoded singular batch from channel", "stage_origin", cr.Origin())
cr.metrics.RecordDerivedBatches("singular")
return batch, nil
case SpanBatchType:
Expand All @@ -119,7 +119,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
if err != nil {
return nil, err
}
batch.LogContext(cr.log).Debug("decoded span batch from channel", "stage_origin", cr.Origin())
batch.LogContext(cr.log).Info("decoded span batch from channel", "stage_origin", cr.Origin())
cr.metrics.RecordDerivedBatches("span")
return batch, nil
default:
Expand Down

0 comments on commit 0347c66

Please sign in to comment.