diff --git a/deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java b/deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java index 83a9647..2bf697e 100644 --- a/deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java @@ -161,7 +161,7 @@ void includeUiAndWebsocket( Files.createFile(indexHtml); } String indexHtmlContent = getIndexHtmlContents(nonApplicationRootPathBuildItem.getNonApplicationRootPath(), - "/dev/logstream"); + "/dev-v1/logstream"); Files.write(indexHtml, indexHtmlContent.getBytes()); @@ -187,7 +187,7 @@ void includeUiAndWebsocket( String indexHtmlContent = getIndexHtmlContents(nonApplicationRootPathBuildItem.getNonApplicationRootPath(), "/" + loggingManagerConfig.basePath + "/logstream"); // Update the resource Url to be relative - String pathToBeReplaced = nonApplicationRootPathBuildItem.resolvePath("dev/resources"); + String pathToBeReplaced = nonApplicationRootPathBuildItem.resolvePath("dev-v1/resources"); indexHtmlContent = indexHtmlContent.replaceAll(pathToBeReplaced + "/", ""); String indexHtmlFileName = UI_FINAL_DESTINATION + "/" + INDEX_HTML; generatedResourceProducer.produce(new GeneratedResourceBuildItem(indexHtmlFileName, indexHtmlContent.getBytes())); @@ -247,7 +247,7 @@ void registerLoggingManagerUiHandler( .handler(handler) .build()); - // Add the log stream (In dev mode, the stream is already available at /dev/logstream) + // Add the log stream (In dev mode, the stream is already available at /dev-v1/logstream) if (!launchMode.getLaunchMode().isDevOrTest() && loggingManagerConfig.ui.alwaysInclude) { reflectiveClassProducer.produce(new ReflectiveClassBuildItem(true, true, @@ -305,7 +305,7 @@ private String getIndexHtmlContents(String nonApplicationRootPath, String stream cleanFrameworkRootPath(nonApplicationRootPath)); indexHtmlContent = indexHtmlContent.replaceAll("\\{devRootAppend}", - cleanFrameworkRootPath(nonApplicationRootPath) + "/dev"); + cleanFrameworkRootPath(nonApplicationRootPath) + "/dev-v1"); indexHtmlContent = indexHtmlContent.replaceAll("\\{streamingPath}", streamingPath); diff --git a/deployment/src/main/resources/META-INF/resources/template/loggermanager.html b/deployment/src/main/resources/META-INF/resources/template/loggermanager.html index 4bd21d0..41d64b2 100644 --- a/deployment/src/main/resources/META-INF/resources/template/loggermanager.html +++ b/deployment/src/main/resources/META-INF/resources/template/loggermanager.html @@ -6,11 +6,11 @@ - - - + + + - + Logging manager | {applicationName} {applicationVersion} @@ -52,9 +52,9 @@ {logContent} {modalsContent} - - - + +