Less verbose console output (#4029)

This commit is contained in:
Arkadiy Paronyan
2019-11-06 10:06:11 +01:00
committed by Bastian Köcher
parent f093eeba24
commit 1aaf31a34d
2 changed files with 9 additions and 8 deletions
+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(