Skip to content

Commit df715c5

Browse files
committed
add logging around alloyDB
1 parent 805b485 commit df715c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tasks/env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use signet_constants::SignetSystemConstants;
1414
use signet_sim::{HostEnv, RollupEnv};
1515
use tokio::{sync::watch, task::JoinHandle};
1616
use tokio_stream::StreamExt;
17-
use tracing::{Instrument, Span, info_span};
17+
use tracing::{Instrument, Span, debug, info_span};
1818
use trevm::revm::{
1919
context::BlockEnv,
2020
context_interface::block::BlobExcessGasAndPrice,
@@ -139,6 +139,7 @@ impl SimEnv {
139139
///
140140
/// This function will panic if not called within a Tokio runtime.
141141
pub fn rollup_db(&self, provider: RuProvider) -> RollupAlloyDatabaseProvider {
142+
debug!(block_number = ?BlockId::latest(), "creating alloy DB for rollup");
142143
WrapDatabaseAsync::new(self.rollup.alloy_db(provider, BlockId::latest())).expect("in tokio runtime")
143144
}
144145

@@ -148,6 +149,7 @@ impl SimEnv {
148149
///
149150
/// This function will panic if not called within a Tokio runtime.
150151
pub fn host_db(&self, provider: HostProvider) -> HostAlloyDatabaseProvider {
152+
debug!(block_number = ?BlockId::number(self.prev_host().number), "creating alloy DB for host");
151153
WrapDatabaseAsync::new(self.host.alloy_db(provider, BlockId::number(self.prev_host().number))).expect("in tokio runtime")
152154
}
153155

0 commit comments

Comments
 (0)