refactor logger

This commit is contained in:
vms
2020-12-08 18:15:18 +03:00
parent 1f2355e6ef
commit de3d51ef8f
17 changed files with 241 additions and 61 deletions

View File

@ -19,14 +19,14 @@ mod path;
use crate::path::to_full_path;
use fluence::fce;
use fluence::WasmLogger;
use fluence::WasmLoggerBuilder;
const RESULT_FILE_PATH: &str = "/tmp/ipfs_rpc_file";
const IPFS_ADDR_ENV_NAME: &str = "IPFS_ADDR";
const TIMEOUT_ENV_NAME: &str = "timeout";
pub fn main() {
WasmLogger::new()
WasmLoggerBuilder::new()
.with_log_level(log::Level::Info)
.build()
.unwrap();

View File

@ -15,7 +15,7 @@
*/
use fluence::fce;
use fluence::WasmLogger;
use fluence::WasmLoggerBuilder;
use std::fs;
use std::path::PathBuf;
@ -23,7 +23,7 @@ use std::path::PathBuf;
const RPC_TMP_FILEPATH: &str = "/tmp/ipfs_rpc_file";
pub fn main() {
WasmLogger::new()
WasmLoggerBuilder::new()
.with_log_level(log::Level::Info)
.build()
.unwrap();