~jan0sch/smederee
Showing details for patch 6e79360b8eec0c84ff64d524dd38e63371d188d6.
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala --- old-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala 2025-01-12 22:29:29.136359104 +0000 +++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala 2025-01-12 22:29:29.136359104 +0000 @@ -556,7 +556,7 @@ ) ) ) - errorHandlingMiddleware = ErrorHandling.Recover.total( + serviceWithErrorHandling = ErrorHandling.Recover.total( ErrorAction.log( hubWebService, messageFailureLogAction = handleError, @@ -568,7 +568,7 @@ .default[IO] .withHost(hubConfiguration.service.host) .withPort(hubConfiguration.service.port) - .withHttpApp(csrfMiddleware.validate()(errorHandlingMiddleware)) + .withHttpApp(csrfMiddleware.validate()(serviceWithErrorHandling)) .build webServer = resource.use(server => IO(log.info("Server started at {}", server.address)) >> IO.never.as(ExitCode.Success)