From 9fd6a89f7f75af2f6724587759b66c36cadfc1be Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 18:19:56 +0300 Subject: [PATCH] logs --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8c4a7d6..3ea2341 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use actix_web::{web, App, HttpResponse, HttpServer, web::Bytes}; +use actix_web::middleware::Logger; use redis::{Client, AsyncCommands}; use std::collections::HashMap; use std::env; @@ -119,6 +120,7 @@ async fn main() -> std::io::Result<()> { HttpServer::new(move || { println!("Webserver initialized"); App::new() + .wrap(Logger::default()) // Added this line .app_data(web::Data::new(state.clone())) .service( web::scope("")