Skip to content

Commit 723bf8b

Browse files
committed
fix: logging
1 parent d111f82 commit 723bf8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/scroll/rpc/src/eth/transaction.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ where
4444
// On scroll, transactions are forwarded directly to the sequencer to be included in
4545
// blocks that it builds.
4646
if let Some(client) = self.raw_tx_forwarder().as_ref() {
47-
tracing::debug!(target: "rpc::eth", hash = %pool_transaction.hash(), "forwarding raw transaction to sequencer");
47+
tracing::debug!(target: "scroll::rpc::eth", hash = %pool_transaction.hash(), "forwarding raw transaction to sequencer");
4848

4949
// Retain tx in local tx pool before forwarding to sequencer rpc, for local RPC usage.
5050
let hash = self
@@ -53,15 +53,15 @@ where
5353
.await
5454
.map_err(Self::Error::from_eth_err)?;
5555

56-
tracing::debug!(target: "rpc::eth", %hash, "successfully added transaction to local tx pool");
56+
tracing::debug!(target: "scroll::rpc::eth", %hash, "successfully added transaction to local tx pool");
5757

5858
// Forward to remote sequencer RPC.
5959
match client.forward_raw_transaction(&tx).await {
6060
Ok(sequencer_hash) => {
61-
tracing::debug!(target: "rpc::eth", local_hash=%hash, sequencer_hash=%sequencer_hash, "successfully forwarded transaction to sequencer");
61+
tracing::debug!(target: "scroll::rpc::eth", local_hash=%hash, sequencer_hash=%sequencer_hash, "successfully forwarded transaction to sequencer");
6262
}
6363
Err(err) => {
64-
tracing::warn!(target: "rpc::eth", %err, %hash, "failed to forward transaction to sequencer, but transaction is in local pool");
64+
tracing::warn!(target: "scroll::rpc::eth", %err, %hash, "failed to forward transaction to sequencer, but transaction is in local pool");
6565
}
6666
}
6767

crates/scroll/rpc/src/sequencer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl SequencerClient {
9898
self.client().request::<Params, Resp>(method.to_string(), params).await.inspect_err(
9999
|err| {
100100
warn!(
101-
target: "rpc::sequencer",
101+
target: "scroll::rpc::sequencer",
102102
%err,
103103
"HTTP request to sequencer failed",
104104
);
@@ -113,7 +113,7 @@ impl SequencerClient {
113113
let tx_hash =
114114
self.send_rpc_call("eth_sendRawTransaction", (rlp_hex,)).await.inspect_err(|err| {
115115
warn!(
116-
target: "rpc::eth",
116+
target: "scroll::rpc::eth",
117117
%err,
118118
"Failed to forward transaction to sequencer",
119119
);

0 commit comments

Comments
 (0)