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:
Sergei Shulepov authored and GitHub committed 2021-02-04 10:02:20 +01:00
1 parent 0cb1ccd122
commit 82a20778fd
4 files changed
+25 -2

No files matched your search

@@ -387,6 +387,9 @@ where
tracing::debug!(
target: LOG_TARGET,
%request_id,
?para_id,
?relay_parent,
candidate_hash = ?receipt.hash(),
"Received collation",
);