Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jul 12, 2024
1 parent 58c7024 commit db7d643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bolt-sidecar/src/api/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ where
Ok(res) => match res {
Err(builder_err) => builder_err,
Ok(header) => {
tracing::debug!(elapsed = ?start.elapsed(), "Returning signed builder bid: {:?}", header);
tracing::debug!(elapsed = ?start.elapsed(), "Returning signed builder bid");
return Ok(Json(header));
}
},
Expand Down Expand Up @@ -215,7 +215,7 @@ where
});
};

tracing::info!("Local block found, returning: {payload:?}");
tracing::debug!("Local block found, returning: {payload:?}");
return Ok(Json(payload));
}

Expand Down
8 changes: 4 additions & 4 deletions bolt-sidecar/src/state/head_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl HeadTracker {
let mut event_stream = match beacon_client.get_events::<NewHeadsTopic>().await {
Ok(events) => events,
Err(err) => {
tracing::warn!("failed to subscribe to new heads topic: {:?}", err);
tracing::warn!(?err, "failed to subscribe to new heads topic, retrying...");
tokio::time::sleep(Duration::from_secs(1)).await;
continue;
}
Expand All @@ -51,7 +51,7 @@ impl HeadTracker {
let event = match event_stream.next().await {
Some(Ok(event)) => event,
Some(Err(err)) => {
tracing::warn!("error reading new head event stream: {:?}", err);
tracing::warn!(?err, "error reading new head event stream, retrying...");
tokio::time::sleep(Duration::from_secs(1)).await;
continue;
}
Expand All @@ -62,8 +62,8 @@ impl HeadTracker {
}
};

if let Err(e) = new_heads_tx.send(event) {
tracing::warn!("failed to broadcast new head event to subscribers: {:?}", e);
if let Err(err) = new_heads_tx.send(event) {
tracing::warn!(?err, "failed to broadcast new head event to subscribers");
}
}
});
Expand Down

0 comments on commit db7d643

Please sign in to comment.