Skip to content

Commit 152a482

Browse files
dimazhornykDeniallugo
authored andcommitted
chore: improve logging for DA dispatcher and avail client (#4545)
## What ❔ Improve logging for DA dispatcher and Avail client ## Why ❔ For easier debugging in case of any issues in the future. ## Is this a breaking change? - [ ] Yes - [ ] No ## Operational changes <!-- Any config changes? Any new flags? Any changes to any scripts? --> <!-- Please add anything that non-Matter Labs entities running their own ZK Chain may need to know --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`.
1 parent 2920e2d commit 152a482

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

core/node/da_clients/src/avail/client.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ impl DataAvailabilityClient for AvailClient {
293293
error: anyhow!("Unable to join to URL"),
294294
is_retriable: false,
295295
})?;
296+
tracing::debug!("Fetching inclusion data from Bridge API: {}", url);
296297

297298
let response = self
298299
.api_client
@@ -302,6 +303,11 @@ impl DataAvailabilityClient for AvailClient {
302303
.await
303304
.map_err(to_retriable_da_error)?;
304305

306+
tracing::debug!(
307+
"Bridge API HTTP Response size: {:?}",
308+
response.content_length()
309+
);
310+
305311
// 404 means that the blob is not included in the bridge yet
306312
if response.status() == StatusCode::NOT_FOUND {
307313
return Ok(None);

core/node/da_dispatcher/src/da_dispatcher.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ impl DataAvailabilityDispatcher {
291291
return Ok(());
292292
};
293293

294+
tracing::debug!("Getting inclusion data for blob_info: {:?}...", blob_info);
294295
let inclusion_data = if self.config.use_dummy_inclusion_data {
295296
Some(InclusionData { data: vec![] })
296297
} else {

0 commit comments

Comments
 (0)