mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 05:05:41 +00:00
Add more info to logs. (#5123)
This commit is contained in:
@@ -289,6 +289,11 @@ impl RunningTask {
|
|||||||
gum::debug!(
|
gum::debug!(
|
||||||
target: LOG_TARGET,
|
target: LOG_TARGET,
|
||||||
validator = ?validator,
|
validator = ?validator,
|
||||||
|
relay_parent = ?self.relay_parent,
|
||||||
|
group_index = ?self.group_index,
|
||||||
|
session_index = ?self.session_index,
|
||||||
|
chunk_index = ?self.request.index,
|
||||||
|
candidate_hash = ?self.request.candidate_hash,
|
||||||
"Validator did not have our chunk"
|
"Validator did not have our chunk"
|
||||||
);
|
);
|
||||||
bad_validators.push(validator);
|
bad_validators.push(validator);
|
||||||
@@ -340,6 +345,11 @@ impl RunningTask {
|
|||||||
gum::warn!(
|
gum::warn!(
|
||||||
target: LOG_TARGET,
|
target: LOG_TARGET,
|
||||||
origin= ?validator,
|
origin= ?validator,
|
||||||
|
relay_parent = ?self.relay_parent,
|
||||||
|
group_index = ?self.group_index,
|
||||||
|
session_index = ?self.session_index,
|
||||||
|
chunk_index = ?self.request.index,
|
||||||
|
candidate_hash = ?self.request.candidate_hash,
|
||||||
err= ?err,
|
err= ?err,
|
||||||
"Peer sent us invalid erasure chunk data"
|
"Peer sent us invalid erasure chunk data"
|
||||||
);
|
);
|
||||||
@@ -349,15 +359,27 @@ impl RunningTask {
|
|||||||
gum::debug!(
|
gum::debug!(
|
||||||
target: LOG_TARGET,
|
target: LOG_TARGET,
|
||||||
origin= ?validator,
|
origin= ?validator,
|
||||||
|
relay_parent = ?self.relay_parent,
|
||||||
|
group_index = ?self.group_index,
|
||||||
|
session_index = ?self.session_index,
|
||||||
|
chunk_index = ?self.request.index,
|
||||||
|
candidate_hash = ?self.request.candidate_hash,
|
||||||
err= ?err,
|
err= ?err,
|
||||||
"Some network error occurred when fetching erasure chunk"
|
"Some network error occurred when fetching erasure chunk"
|
||||||
);
|
);
|
||||||
Err(TaskError::PeerError)
|
Err(TaskError::PeerError)
|
||||||
},
|
},
|
||||||
Err(RequestError::Canceled(oneshot::Canceled)) => {
|
Err(RequestError::Canceled(oneshot::Canceled)) => {
|
||||||
gum::debug!(target: LOG_TARGET,
|
gum::debug!(
|
||||||
origin= ?validator,
|
target: LOG_TARGET,
|
||||||
"Erasure chunk request got canceled");
|
origin= ?validator,
|
||||||
|
relay_parent = ?self.relay_parent,
|
||||||
|
group_index = ?self.group_index,
|
||||||
|
session_index = ?self.session_index,
|
||||||
|
chunk_index = ?self.request.index,
|
||||||
|
candidate_hash = ?self.request.candidate_hash,
|
||||||
|
"Erasure chunk request got canceled"
|
||||||
|
);
|
||||||
Err(TaskError::PeerError)
|
Err(TaskError::PeerError)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user