diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java index c24b1827..ff18865b 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java @@ -132,9 +132,9 @@ private void forwardError(AsyncResult> event, int statusCod private void forwardResponse(AsyncResult> event, HttpServerRequest request, RoutingContext ctx, String resourcePath) { - if (LOG.isDebugEnabled()) { + LOG.debugf("Quinoa is forwarding: '%s'", request.uri()); - } + final HttpServerResponse response = ctx.response(); for (String header : HEADERS_TO_FORWARD) { response.headers().add(header, event.result().headers().getAll(header)); diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java index ae878cc7..f8608193 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java @@ -50,9 +50,9 @@ static String resolvePath(RoutingContext ctx) { static boolean isIgnored(final String path, final List ignoredPathPrefixes) { if (ignoredPathPrefixes.stream().anyMatch(path::startsWith)) { - if (LOG.isDebugEnabled()) { - LOG.debugf("Quinoa is ignoring path (quarkus.quinoa.ignored-path-prefixes): " + path); - } + + LOG.debugf("Quinoa is ignoring path (quarkus.quinoa.ignored-path-prefixes): " + path); + return true; } return false; diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaSPARoutingHandler.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaSPARoutingHandler.java index 752c4afe..8ca90f5d 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaSPARoutingHandler.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaSPARoutingHandler.java @@ -30,9 +30,9 @@ public void handle(RoutingContext ctx) { } String path = resolvePath(ctx); if (!Objects.equals(path, "/") && !isIgnored(path, config.ignoredPathPrefixes)) { - if (LOG.isDebugEnabled()) { - LOG.debugf("Quinoa is re-routing SPA request '%s' to '/'", ctx.normalizedPath()); - } + + LOG.debugf("Quinoa is re-routing SPA request '%s' to '/'", ctx.normalizedPath()); + ctx.reroute(ctx.mountPoint() != null ? ctx.mountPoint() : "/"); } else { next(currentClassLoader, ctx);