logs
This commit is contained in:
@@ -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("")
|
||||
|
Reference in New Issue
Block a user