Skip to content

Commit

Permalink
Switched to synchronous logger
Browse files Browse the repository at this point in the history
  • Loading branch information
hmettendorf committed Mar 8, 2024
1 parent b6536e5 commit fdcbb9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use log::{error, info};
use structured_logger::{async_json::new_writer, Builder};
use std::{io::stdout};
use structured_logger::{json::new_writer, Builder};

mod config;

Expand Down Expand Up @@ -43,6 +44,6 @@ async fn main() {

fn init_logger() {
Builder::with_level("info")
.with_target_writer("*", new_writer(tokio::io::stdout()))
.with_target_writer("*", new_writer(stdout()))
.init();
}

0 comments on commit fdcbb9c

Please sign in to comment.