initial integration with telem viz
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use fern::colors::{Color, ColoredLevelConfig};
|
||||
use log::debug;
|
||||
use log::{LevelFilter, debug};
|
||||
use std::fs::create_dir_all;
|
||||
use std::str::FromStr;
|
||||
use std::{env, thread};
|
||||
@@ -46,6 +46,9 @@ pub fn setup_logger(package_name: &'static str) -> Result<()> {
|
||||
.chain(
|
||||
fern::Dispatch::new()
|
||||
.level(log_level)
|
||||
.level_for("tungstenite", LevelFilter::Warn)
|
||||
.level_for("tokio_tungstenite", LevelFilter::Warn)
|
||||
.level_for("api", LevelFilter::Info)
|
||||
.chain(std::io::stdout()),
|
||||
)
|
||||
.chain(fern::log_file(log_file.clone())?)
|
||||
|
||||
Reference in New Issue
Block a user