This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch opensearch-persistence
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/opensearch-persistence by this
push:
new 66bcd8485 To address issue in code review, made sure we output to both
the logger and the System.out systematically
66bcd8485 is described below
commit 66bcd84859ff2b4f67f2130fd0fedd5b1f0b93f4
Author: Serge Huber <[email protected]>
AuthorDate: Mon Oct 13 19:40:44 2025 +0200
To address issue in code review, made sure we output to both the logger and
the System.out systematically
---
itests/src/test/java/org/apache/unomi/itests/BaseIT.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/itests/src/test/java/org/apache/unomi/itests/BaseIT.java
b/itests/src/test/java/org/apache/unomi/itests/BaseIT.java
index 328ceac0e..a036c8e15 100644
--- a/itests/src/test/java/org/apache/unomi/itests/BaseIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/BaseIT.java
@@ -277,9 +277,11 @@ public abstract class BaseIT extends KarafTestSupport {
@Configuration
public Option[] config() {
+ LOGGER.info("==== Configuring container");
System.out.println("==== Configuring container");
searchEngine = System.getProperty(SEARCH_ENGINE_PROPERTY,
SEARCH_ENGINE_ELASTICSEARCH);
+ LOGGER.info("Search Engine: {}", searchEngine);
System.out.println("Search Engine: " + searchEngine);
// Define features option based on search engine
@@ -390,6 +392,7 @@ public abstract class BaseIT extends KarafTestSupport {
String karafDebug = System.getProperty("it.karaf.debug");
if (karafDebug != null) {
+ LOGGER.info("Found system Karaf Debug system property, activating
configuration: {}", karafDebug);
System.out.println("Found system Karaf Debug system property,
activating configuration: " + karafDebug);
String port = "5006";
boolean hold = true;
@@ -428,6 +431,7 @@ public abstract class BaseIT extends KarafTestSupport {
}
searchEngine = System.getProperty(SEARCH_ENGINE_PROPERTY,
SEARCH_ENGINE_ELASTICSEARCH);
+ LOGGER.info("Search Engine: {}", searchEngine);
System.out.println("Search Engine: " + searchEngine);
return Stream.of(super.config(), karafOptions.toArray(new
Option[karafOptions.size()])).flatMap(Stream::of).toArray(Option[]::new);
@@ -683,6 +687,7 @@ public abstract class BaseIT extends KarafTestSupport {
}
protected CloseableHttpResponse executeHttpRequest(HttpUriRequest request)
throws IOException {
+ LOGGER.info("Executing request {} {}...", request.getMethod(),
request.getURI());
System.out.println("Executing request " + request.getMethod() + " " +
request.getURI() + "...");
CloseableHttpResponse response = httpClient.execute(request);
int statusCode = response.getStatusLine().getStatusCode();