Skip to content

Commit b3d3d98

Browse files
committed
update log levels
1 parent 7371efa commit b3d3d98

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/tasks/block.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ impl InProgressBlock {
5656

5757
/// Ingest a transaction into the in-progress block. Fails
5858
pub fn ingest_tx(&mut self, tx: &TxEnvelope) {
59-
tracing::info!(hash = %tx.tx_hash(), "ingesting tx");
59+
tracing::trace!(hash = %tx.tx_hash(), "ingesting tx");
6060
self.unseal();
6161
self.transactions.push(tx.clone());
6262
}
6363

6464
/// Remove a transaction from the in-progress block.
6565
pub fn remove_tx(&mut self, tx: &TxEnvelope) {
66-
tracing::info!(hash = %tx.tx_hash(), "removing tx");
66+
tracing::trace!(hash = %tx.tx_hash(), "removing tx");
6767
self.unseal();
6868
self.transactions.retain(|t| t.tx_hash() != tx.tx_hash());
6969
}
7070

7171
/// Ingest a bundle into the in-progress block.
7272
/// Ignores Signed Orders for now.
7373
pub fn ingest_bundle(&mut self, bundle: Bundle) {
74-
tracing::info!(bundle = %bundle.id, "ingesting bundle");
74+
tracing::trace!(bundle = %bundle.id, "ingesting bundle");
7575

7676
let txs = bundle
7777
.bundle
@@ -140,11 +140,11 @@ impl BlockBuilder {
140140
}
141141

142142
async fn get_transactions(&mut self, in_progress: &mut InProgressBlock) {
143-
tracing::info!("query transactions from cache");
143+
tracing::trace!("query transactions from cache");
144144
let txns = self.tx_poller.check_tx_cache().await;
145145
match txns {
146146
Ok(txns) => {
147-
tracing::info!("got transactions response");
147+
tracing::trace!("got transactions response");
148148
for txn in txns.into_iter() {
149149
in_progress.ingest_tx(&txn);
150150
}
@@ -157,11 +157,11 @@ impl BlockBuilder {
157157
}
158158

159159
async fn _get_bundles(&mut self, in_progress: &mut InProgressBlock) {
160-
tracing::info!("query bundles from cache");
160+
tracing::trace!("query bundles from cache");
161161
let bundles = self.bundle_poller.check_bundle_cache().await;
162162
match bundles {
163163
Ok(bundles) => {
164-
tracing::info!("got bundles response");
164+
tracing::trace!("got bundles response");
165165
for bundle in bundles {
166166
in_progress.ingest_bundle(bundle);
167167
}
@@ -186,7 +186,7 @@ impl BlockBuilder {
186186
confirmed_transactions.push(transaction.clone());
187187
}
188188
}
189-
tracing::info!(confirmed = confirmed_transactions.len(), "found confirmed transactions");
189+
tracing::trace!(confirmed = confirmed_transactions.len(), "found confirmed transactions");
190190

191191
// remove already-confirmed transactions
192192
for transaction in confirmed_transactions {
@@ -228,14 +228,14 @@ impl BlockBuilder {
228228

229229
// submit the block if it has transactions
230230
if !in_progress.is_empty() {
231-
tracing::info!(txns = in_progress.len(), "sending block to submit task");
231+
tracing::debug!(txns = in_progress.len(), "sending block to submit task");
232232
let in_progress_block = std::mem::take(&mut in_progress);
233233
if outbound.send(in_progress_block).is_err() {
234-
tracing::debug!("downstream task gone");
234+
tracing::error!("downstream task gone");
235235
break;
236236
}
237237
} else {
238-
tracing::info!("no transactions, skipping block submission");
238+
tracing::debug!("no transactions, skipping block submission");
239239
}
240240
}
241241
}

0 commit comments

Comments
 (0)