Skip to content

Commit 2b840e2

Browse files
committed
style(aggregator): reduce some logs space
1 parent fd24f7d commit 2b840e2

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

mithril-aggregator/src/runtime/runner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,7 @@ impl AggregatorRunnerTrait for AggregatorRunner {
438438
.change_era(current_era, token.get_current_epoch());
439439
debug!(
440440
self.logger,
441-
"Current Era is {} (Epoch {}).",
442-
current_era,
441+
"Current Era is {current_era} (Epoch {}).",
443442
token.get_current_epoch()
444443
);
445444

mithril-aggregator/src/services/certifier/buffered_certifier.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ impl CertifierService for BufferedCertifierService {
102102
Err(error) => match error.downcast_ref::<CertifierServiceError>() {
103103
Some(CertifierServiceError::NotFound(..)) if signature.is_authenticated() => {
104104
debug!(
105-
self.logger,
106-
"No OpenMessage available for signed entity - Buffering single signature";
105+
self.logger, "No OpenMessage available for signed entity - Buffering single signature";
107106
"signed_entity_type" => ?signed_entity_type,
108107
"party_id" => &signature.party_id
109108
);

mithril-aggregator/src/services/prover.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ impl<S: MKTreeStorer> ProverService for MithrilProverService<S> {
167167
async fn compute_cache(&self, up_to: BlockNumber) -> StdResult<()> {
168168
let pool_size = self.mk_map_pool.size();
169169
info!(
170-
self.logger,
171-
"Starts computing the Merkle map pool resource of size {pool_size}";
170+
self.logger, "Starts computing the Merkle map pool resource of size {pool_size}";
172171
"up_to_block_number" => *up_to,
173172
);
174173
let mk_map_cache = self

mithril-aggregator/src/snapshotter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ impl Snapshotter for CompressedArchiveSnapshotter {
101101
let filesize = self.create_and_verify_archive(&archive_path).inspect_err(|_err| {
102102
if archive_path.exists() {
103103
if let Err(remove_error) = fs::remove_file(&archive_path) {
104-
warn!(self.logger,
105-
" > Post snapshotter.snapshot failure, could not remove temporary archive";
104+
warn!(
105+
self.logger, " > Post snapshotter.snapshot failure, could not remove temporary archive";
106106
"archive_path" => archive_path.display(),
107107
"error" => remove_error
108108
);

mithril-aggregator/src/tools/signer_importer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ impl SignersImporter {
4545
.await
4646
.with_context(|| "Failed to retrieve signers from remote service")?;
4747

48-
info!(self.logger,
49-
"Persisting retrieved data in the database";
48+
info!(
49+
self.logger, "Persisting retrieved data in the database";
5050
"number_of_signer_to_insert" => items.len()
5151
);
5252
self.persister

mithril-aggregator/src/tools/single_signature_authenticator.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ impl SingleSignatureAuthenticator {
3535
{
3636
Ok(()) => {
3737
debug!(
38-
self.logger,
39-
"Single signature party authenticated for current stake distribution";
38+
self.logger, "Single signature party authenticated for current stake distribution";
4039
"party_id" => &single_signature.party_id,
4140
);
4241
true
@@ -54,15 +53,13 @@ impl SingleSignatureAuthenticator {
5453
.is_ok()
5554
{
5655
debug!(
57-
self.logger,
58-
"Single signature party authenticated for next stake distribution";
56+
self.logger, "Single signature party authenticated for next stake distribution";
5957
"party_id" => &single_signature.party_id,
6058
);
6159
true
6260
} else {
6361
debug!(
64-
self.logger,
65-
"Single signature party not authenticated";
62+
self.logger, "Single signature party not authenticated";
6663
"party_id" => &single_signature.party_id,
6764
);
6865
false

0 commit comments

Comments
 (0)