mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 06:29:49 +00:00
Diagnostics quality of life improvements (#2375)
* Implement `Debug` manually for CandidateHash This will make candidate hashes printed consistently without the `CandidateHash(` and `)` decorations. * Do not print CompressedPov's guts It can be overwhelming. Better just use the size. * Log when candidate is generated * Print para_id and candidate_hash upon receiving a collation
This commit is contained in:
1 parent
0cb1ccd122
commit
82a20778fd
4 files changed
+25
-2
No files matched your search
@@ -337,6 +337,14 @@ async fn handle_new_activations<Context: SubsystemContext>(
|
||||
},
|
||||
};
|
||||
|
||||
tracing::debug!(
|
||||
target: LOG_TARGET,
|
||||
candidate_hash = %ccr.hash(),
|
||||
?pov_hash,
|
||||
?relay_parent,
|
||||
para_id = %scheduled_core.para_id,
|
||||
"candidate is generated",
|
||||
);
|
||||
metrics.on_collation_generated();
|
||||
|
||||
if let Err(err) = task_sender.send(AllMessages::CollatorProtocol(
|
||||
|
||||
Reference in new issue
Block a user