From fdcbb9ca5682bcf86a625b6d52e996dc3d51c4da Mon Sep 17 00:00:00 2001 From: Hauke Mettendorf Date: Fri, 8 Mar 2024 23:37:23 +0100 Subject: [PATCH] Switched to synchronous logger --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7ae5229..f739138 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; @@ -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(); }