Skip to content

Commit

Permalink
Merge remote changes
Browse files Browse the repository at this point in the history
  • Loading branch information
heinpa committed Jan 16, 2024
2 parents e1baaec + 60743b1 commit f6dd5c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public String showDescriptionOnGetRequestOnRoot(HttpServletResponse response, Mo
String sessionDataValue = env.getProperty(name, "This text is shown as the property " + name + " is not defined (e.g., in application.properties).");
session.setAttribute(sessionDataName, sessionDataValue);
logger.info("session | {} -> {}={}", name, sessionDataName, session.getAttribute(sessionDataName));
}
}

Map<String,String> envImportantPropertyNameValue = new HashMap<>();
envImportantPropertyNameValue.put("component_description_url", QanaryConfiguration.description);
Expand All @@ -157,16 +157,16 @@ public String showDescriptionOnGetRequestOnRoot(HttpServletResponse response, Mo
envImportantPropertyNameValue.put("componentImplementationVendor", extendingComponent.getPackage().getSpecificationVendor());

} catch (Exception e) {
logger.debug("No class implementing QanaryComponent could be found during runtime!");
logger.debug(e.getMessage());
logger.warn("No class implementing QanaryComponent could be found during runtime!");
logger.warn(e.getMessage());
}

for (Map.Entry<String, String> entry : envImportantPropertyNameValue.entrySet()) {
String key = entry.getKey();
String val = entry.getValue();
String key = entry.getKey();
String val = entry.getValue();
session.setAttribute(key, val);
logger.info("session | {}={}", key, session.getAttribute(key));
}
}

return QanaryConfiguration.description_file;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>
<h1>Qanary component: <span th:text=${session.spring_application_name} th:unless="${session == null}" style="font-style: italic"></span><span th:unless="${session == null}">, v<span th:text=${session.componentImplementationVersion} th:unless="${session.componentImplementationVersion == null}" ></span></span></h1>
<h2>(<span th:unless="${session == null}"><span th:text=${session.ImplementationTitle}></span> v<span th:text=${session.ImplementationVersion} th:unless="${session.ImplementationVersion == null}" ></span></span>)</h2>
<h2>(<span th:unless="${session == null}">based on <span th:text=${session.ImplementationTitle}></span> v<span th:text=${session.ImplementationVersion} th:unless="${session.ImplementationVersion == null}" ></span></span>)</h2>
<p th:text=${session.spring_application_description} th:unless="${session == null}"/>
<p>Given the current configuration, this component should connect to a Qanary system at <a th:text="${session.spring_boot_admin_url}" th:href="${session.spring_boot_admin_url}"></a>.</p>
<p>API docs (OpenAPI/Swagger) are available at <a th:text="${session.springdoc_swagger_ui_path}" th:href="${session.springdoc_swagger_ui_path}" th:unless="${session == null}"></a>.</p>
Expand Down

0 comments on commit f6dd5c0

Please sign in to comment.