update examples with new rust-sdk logger

This commit is contained in:
vms
2020-10-30 17:07:29 +03:00
parent acf6450d22
commit d52eb4432f
6 changed files with 28 additions and 13 deletions

View File

@ -26,7 +26,10 @@ const IPFS_ADDR_ENV_NAME: &str = "IPFS_ADDR";
const TIMEOUT_ENV_NAME: &str = "timeout";
pub fn main() {
WasmLogger::init_with_level(log::Level::Info).unwrap();
WasmLogger::new()
.with_log_level(log::Level::Info)
.build()
.unwrap();
}
/// Put file from specified path to IPFS and return its hash.