Less verbose console output (#4029)

This commit is contained in:
Arkadiy Paronyan authored and Bastian Köcher committed 2019-11-06 10:06:11 +01:00
1 parent f093eeba24
commit 1aaf31a34d
2 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -180,17 +180,17 @@ impl OtherApi for () {
}
fn print_num(val: u64) {
println!("{}", val);
log::debug!(target: "runtime", "{}", val);
}
fn print_utf8(utf8: &[u8]) {
if let Ok(data) = std::str::from_utf8(utf8) {
println!("{}", data)
log::debug!(target: "runtime", "{}", data)
}
}
fn print_hex(data: &[u8]) {
println!("{}", HexDisplay::from(&data));
log::debug!(target: "runtime", "{}", HexDisplay::from(&data));
}
fn log(