Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ncitron committed Jan 12, 2024
1 parent 5c5ff2a commit 5b3ed1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/derive/stages/batches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,11 @@ where
} else if start_epoch_num == epoch.number + 1 {
next_epoch
} else {
tracing::warn!("invalid batch origin epoch number");
println!("{}, {}", batch.l1_origin_num, epoch.number);
tracing::warn!(
"invalid batch origin epoch number: batch={}, current={}",
start_epoch_num,
epoch.number
);
return BatchStatus::Drop;
};

Expand Down
2 changes: 1 addition & 1 deletion src/derive/stages/span_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ mod test {

assert_eq!(batch.l1_inclusion_block, 0);

println!("{:?}", batch.origin_bits);
println!("starting epoch: {}", batch.start_epoch_num());

let inputs = batch.block_inputs(&config);
inputs.iter().for_each(|input| {
Expand Down

0 comments on commit 5b3ed1f

Please sign in to comment.