Skip to content

Commit eb5c95f

Browse files
committed
Add log to TransactionsImporter when the database is up to date
1 parent fd345f4 commit eb5c95f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

mithril-aggregator/src/services/cardano_transactions_importer.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ impl CardanoTransactionsImporter {
7171
until: ImmutableFileNumber,
7272
) -> StdResult<()> {
7373
if from.is_some_and(|f| f >= until) {
74-
// Db is up-to-date - nothing to do
74+
debug!(
75+
self.logger,
76+
"TransactionsImporter does not need to retrieve Cardano transactions, the database is up to date for immutable '{until}'",
77+
);
7578
return Ok(());
7679
}
7780

@@ -81,7 +84,7 @@ impl CardanoTransactionsImporter {
8184
.await?;
8285
debug!(
8386
self.logger,
84-
"Retrieved {} Cardano transactions at between immutables {} and {until}",
87+
"TransactionsImporter retrieved '{}' Cardano transactions between immutables '{}' and '{until}'",
8588
parsed_transactions.len(),
8689
from.unwrap_or(0)
8790
);

mithril-signer/src/cardano_transactions_importer.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ impl CardanoTransactionsImporter {
7171
until: ImmutableFileNumber,
7272
) -> StdResult<()> {
7373
if from.is_some_and(|f| f >= until) {
74-
// Db is up-to-date - nothing to do
74+
debug!(
75+
self.logger,
76+
"TransactionsImporter does not need to retrieve Cardano transactions, the database is up to date for immutable '{until}'",
77+
);
7578
return Ok(());
7679
}
7780

@@ -81,7 +84,7 @@ impl CardanoTransactionsImporter {
8184
.await?;
8285
debug!(
8386
self.logger,
84-
"Retrieved {} Cardano transactions at between immutables {} and {until}",
87+
"TransactionsImporter retrieved '{}' Cardano transactions between immutables '{}' and '{until}'",
8588
parsed_transactions.len(),
8689
from.unwrap_or(0)
8790
);

0 commit comments

Comments
 (0)