From f931a9288e9966a121a75b159d28004760c8f7ca Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 18:02:49 +0300 Subject: [PATCH] pathfix --- src/main.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef2e7a9..d0dcb2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,13 +10,6 @@ use tokio::task::JoinHandle; mod data; -macro_rules! log { - ($($arg:tt)*) => {{ - let timestamp = Local::now().format("%Y-%m-%d %H:%M:%S%.3f"); - println!("[{}] {}", timestamp, format_args!($($arg)*)); - }}; -} - #[derive(Clone)] struct AppState { tasks: Arc>>>, @@ -122,9 +115,9 @@ async fn main() -> std::io::Result<()> { tasks: tasks.clone(), redis: client.clone(), }; - log!("Redis client initialized"); + println!("Redis client initialized"); HttpServer::new(move || { - log!("Webserver initialized"); + println!("Webserver initialized"); App::new() .app_data(web::Data::new(state.clone())) .route("/", web::get().to(connect_handler))