feat: add logging

This commit is contained in:
2026-03-26 21:30:48 +01:00
parent eddb3acacd
commit 90dde65c91
3 changed files with 9 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ pub async fn start_app(args: crate::args::Args, config: crate::conf::Config) ->
HttpServer::new(move || {
App::new()
.app_data(app)
.wrap(actix_web::middleware::Logger::new(
"%a (%{r}a) %r -> %s, %b B in %T s",
))
.service(services::images::make_scope(ws::IMAGES))
.default_service(web::to(services::not_found::not_found))
})