mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
util/cli: refactoring loading log config & add path for log file
This commit is contained in:
@@ -6,12 +6,10 @@ use async_std::{
|
||||
net::{TcpListener, TcpStream},
|
||||
sync::{Arc, Mutex},
|
||||
};
|
||||
use easy_parallel::Parallel;
|
||||
use futures::{io::BufReader, AsyncBufReadExt, AsyncReadExt, FutureExt};
|
||||
use fxhash::FxHashMap;
|
||||
use log::{debug, error, info, warn};
|
||||
use rand::rngs::OsRng;
|
||||
use simplelog::{ColorChoice, TermLogger, TerminalMode};
|
||||
use smol::future;
|
||||
use structopt_toml::StructOptToml;
|
||||
use url::Url;
|
||||
@@ -21,7 +19,7 @@ use darkfi::{
|
||||
raft::{NetMsg, ProtocolRaft, Raft},
|
||||
rpc::server::listen_and_serve,
|
||||
util::{
|
||||
cli::{log_config, spawn_config},
|
||||
cli::{get_log_config, get_log_level, spawn_config},
|
||||
path::{expand_path, get_config_path},
|
||||
},
|
||||
Error, Result,
|
||||
|
||||
Reference in New Issue
Block a user