substrate: sysinfo: Expose failed hardware requirements (#2144)

The check_hardware functions does not give us too much information as to
what is failing, so let's return the list of failed metrics, so that callers can print 
it.

This would make debugging easier, rather than try to guess which
dimension is actually failing.

Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
This commit is contained in:
Alexandru Gheorghe authored and GitHub committed 2023-11-03 15:26:40 +02:00
1 parent e9987401f3
commit dca142398e
7 files changed
+89 -20

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ libc = "0.2"
log = "0.4.17"
rand = "0.8.5"
rand_pcg = "0.3.1"
derive_more = "0.99"
regex = "1"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"