~jan0sch/smederee
Showing details for patch 1d9dcd34e28da0176abc60c91a12a57cd7e5728b.
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-11 15:01:25.274647324 +0000 +++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/HubServer.scala 2025-01-11 15:01:25.274647324 +0000 @@ -140,12 +140,12 @@ * The error (exception) thrown during the request. */ private def logErrors(request: Request[IO], error: Throwable): IO[Unit] = - IO(request.headers.get(ci"X-Request-ID").fold("null")(_.head.value)).map { reqId => + IO(request.headers.get(ci"X-Request-ID").fold("")(_.head.value)).map { reqId => val message = (request, error) match { - case (req, _: MessageFailure) => + case (_, _: MessageFailure) => s"""Message failure handling request $reqId: ${request.method} ${request.pathInfo} from ${request.remoteAddr .getOrElse("<unknown>")}""" - case (req, _) => + case (_, _) => s"""Error servicing request $reqId: ${request.method} ${request.pathInfo} from ${request.remoteAddr .getOrElse("<unknown>")}""" }