mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
more tracing for av-store (#2604)
* more tracing for av-store * Update node/core/av-store/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update node/core/av-store/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update node/core/av-store/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update tracing everywhere * Fix build * More fixes * Push cargo.lock * Update Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
committed by
GitHub
parent
7dfb666ea5
commit
b105d9acc0
@@ -679,6 +679,12 @@ fn note_block_backed(
|
||||
) -> Result<(), Error> {
|
||||
let candidate_hash = candidate.hash();
|
||||
|
||||
tracing::trace!(
|
||||
target: LOG_TARGET,
|
||||
?candidate_hash,
|
||||
"Candidate backed",
|
||||
);
|
||||
|
||||
if load_meta(db, &candidate_hash)?.is_none() {
|
||||
let meta = CandidateMeta {
|
||||
state: State::Unavailable(now.into()),
|
||||
@@ -717,6 +723,12 @@ fn note_block_included(
|
||||
Some(mut meta) => {
|
||||
let be_block = (BEBlockNumber(block.0), block.1);
|
||||
|
||||
tracing::trace!(
|
||||
target: LOG_TARGET,
|
||||
?candidate_hash,
|
||||
"Candidate included",
|
||||
);
|
||||
|
||||
meta.state = match meta.state {
|
||||
State::Unavailable(at) => {
|
||||
let at_d: Duration = at.into();
|
||||
@@ -1045,6 +1057,13 @@ fn store_chunk(
|
||||
None => return Ok(false), // out of bounds.
|
||||
}
|
||||
|
||||
tracing::debug!(
|
||||
target: LOG_TARGET,
|
||||
?candidate_hash,
|
||||
chunk_index = %chunk.index.0,
|
||||
"Stored chunk index for candidate.",
|
||||
);
|
||||
|
||||
db.write(tx)?;
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user