Tweaked logging (#2695)

* Tweaked logging

* Debug for Statement
This commit is contained in:
Arkadiy Paronyan
2021-03-24 19:06:44 +01:00
committed by GitHub
parent e49b3e5ca9
commit de85c05102
3 changed files with 13 additions and 9 deletions
@@ -413,7 +413,6 @@ impl State {
tracing::debug!(
target: LOG_TARGET,
?source,
?peer_id,
?block_hash,
?validator_index,
"Unexpected assignment",
@@ -439,7 +438,6 @@ impl State {
tracing::debug!(
target: LOG_TARGET,
?source,
?peer_id,
?fingerprint,
"Duplicate assignment",
);
@@ -451,9 +449,8 @@ impl State {
tracing::debug!(
target: LOG_TARGET,
?source,
?peer_id,
?fingerprint,
"Assignment from unknown peer",
"Assignment from a peer is out of view",
);
modify_reputation(ctx, peer_id.clone(), COST_UNEXPECTED_MESSAGE).await;
}
@@ -466,7 +463,6 @@ impl State {
tracing::trace!(
target: LOG_TARGET,
?source,
?peer_id,
?fingerprint,
"Known assignment",
);
@@ -497,7 +493,6 @@ impl State {
tracing::trace!(
target: LOG_TARGET,
?source,
?peer_id,
?fingerprint,
?result,
"Checked assignment",
@@ -663,7 +658,7 @@ impl State {
?source,
?peer_id,
?fingerprint,
"Approval from unknown peer",
"Approval from a peer is out of view",
);
modify_reputation(ctx, peer_id.clone(), COST_UNEXPECTED_MESSAGE).await;
}