mirror of
https://github.com/fluencelabs/marine.git
synced 2025-07-02 16:11:35 +00:00
refactor logger
This commit is contained in:
@ -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();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user