mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
gatewayd: switch to TermLogger
This commit is contained in:
@@ -4,7 +4,7 @@ use async_executor::Executor;
|
||||
use clap::Parser;
|
||||
use easy_parallel::Parallel;
|
||||
use log::debug;
|
||||
use simplelog::{LevelFilter, SimpleLogger};
|
||||
use simplelog::{ColorChoice, LevelFilter, TermLogger, TerminalMode};
|
||||
|
||||
use drk::{
|
||||
blockchain::{rocks::columns, Rocks, RocksColumn},
|
||||
@@ -45,7 +45,12 @@ async fn main() -> Result<()> {
|
||||
LevelFilter::Info
|
||||
};
|
||||
|
||||
SimpleLogger::init(loglevel, simplelog::Config::default())?;
|
||||
TermLogger::init(
|
||||
loglevel,
|
||||
simplelog::Config::default(),
|
||||
TerminalMode::Mixed,
|
||||
ColorChoice::Auto,
|
||||
)?;
|
||||
|
||||
let config: GatewaydConfig = Config::<GatewaydConfig>::load(config_path)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user