Просмотр исходного кода

consensus2: removed debugging error log lines

aggstam 4 лет назад
Родитель
Сommit
3cf18a4707
2 измененных файлов с 1 добавлено и 5 удалено
  1. 1 3
      src/consensus2/state.rs
  2. 0 2
      src/consensus2/task/proposal.rs

+ 1 - 3
src/consensus2/state.rs

@@ -453,8 +453,6 @@ impl ValidatorState {
             return Ok((false, None))
         }
 
-        error!("vote: {:?}", vote.id);
-
         // Node refreshes participants records
         self.refresh_participants()?;
 
@@ -702,7 +700,7 @@ impl ValidatorState {
 
         let previous_epoch = last_epoch - 1;
 
-        error!(
+        debug!(
             "refresh_participants(): Checking epochs: previous - {:?}, last - {:?}",
             previous_epoch, last_epoch
         );

+ 0 - 2
src/consensus2/task/proposal.rs

@@ -61,8 +61,6 @@ pub async fn proposal_task(p2p: net::P2pPtr, state: ValidatorStatePtr) {
             Err(e) => error!("Failed refreshing participants: {}", e),
         }
 
-        error!("participants: {:?}", state.read().await.consensus.participants);
-
         // Node checks if it's the epoch leader to generate a new proposal
         // for that epoch.
         let result = if state.write().await.is_epoch_leader() {