Skip to content

Commit 4216f79

Browse files
authored
Merge pull request #4161 from ProvableHQ/logs/remove_extra_newlines
[Logs] Remove empty log entries
2 parents af4a5e2 + 3bf369b commit 4216f79

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

node/bft/ledger-service/src/ledger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl<N: Network, C: ConsensusStorage<N>> LedgerService<N> for CoreLedgerService<
395395
metrics::update_block_metrics(block);
396396
}
397397

398-
tracing::info!("\n\nAdvanced to block {} at round {} - {}\n", block.height(), block.round(), block.hash());
398+
tracing::info!("Advanced to block {} at round {} - {}", block.height(), block.round(), block.hash());
399399
Ok(())
400400
}
401401

node/bft/src/bft.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,16 @@ impl<N: Network> PrimaryCallback<N> for BFT<N> {
251251
let leader_round = leader_certificate.round();
252252
match leader_round == current_round {
253253
true => {
254-
info!("\n\nRound {current_round} elected a leader - {}\n", leader_certificate.author());
254+
info!("Round {current_round} elected a leader - {}", leader_certificate.author());
255255
#[cfg(feature = "metrics")]
256256
metrics::increment_counter(metrics::bft::LEADERS_ELECTED);
257257
}
258258
false => warn!("BFT failed to elect a leader for round {current_round} (!= {leader_round})"),
259259
}
260260
} else {
261261
match is_ready {
262-
true => info!("\n\nRound {current_round} reached quorum without a leader\n"),
263-
false => info!("{}", format!("\n\nRound {current_round} did not elect a leader (yet)\n").dimmed()),
262+
true => info!("Round {current_round} reached quorum without a leader"),
263+
false => info!("{}", format!("Round {current_round} did not elect a leader (yet)").dimmed()),
264264
}
265265
}
266266
}

node/bft/src/primary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ impl<N: Network> Primary<N> {
16971697
// Log the certified batch.
16981698
let num_transmissions = certificate.transmission_ids().len();
16991699
let round = certificate.round();
1700-
info!("\n\nOur batch with {num_transmissions} transmissions for round {round} was certified!\n");
1700+
info!("Our batch with {num_transmissions} transmissions for round {round} was certified!");
17011701
// Increment to the next round.
17021702
self.try_increment_to_the_next_round(round + 1).await
17031703
}

snarkos/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn main() {
155155
// Process any errors (including panics).
156156
match result {
157157
Ok(Ok(output)) => {
158-
print_info!("{output}\n");
158+
print_info!("{output}");
159159
exit(0);
160160
}
161161
Ok(Err(err)) => {

0 commit comments

Comments
 (0)