Skip to content

Commit

Permalink
[Logging] Disable Ansi Formatting (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Sep 25, 2023
1 parent 706839d commit 82155bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ struct Arguments {

#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt::init();
dotenv().ok(); // Couldn't load multiple Env Vars without this!
let args = Arguments::parse();
let subscriber = tracing_subscriber::FmtSubscriber::builder()
.with_ansi(false)
.finish();

tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");

let (config, root) = Config::load(&args.config, args.node_url, args.db_string)
.context("failed to load configuration")?;
Expand Down

0 comments on commit 82155bb

Please sign in to comment.