Optimize test logging (#3126)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2026-06-11 16:07:00 +03:00
committed by GitHub
parent 80898e776a
commit 19eedab40e
4 changed files with 20 additions and 10 deletions

View File

@@ -417,8 +417,8 @@ public abstract class AbstractRepositoryManagementTest<T extends BaseEntity, C,
});
return new RepoMan<T, C, U>(
fields.stream()
.peek(field -> System.out.println("Found RepositoryManagement field: " + field.getName() + "-> " + Arrays.toString(
genericTypes(field.getType(), RepositoryManagement.class))))
.peek(field -> log.debug("Found RepositoryManagement field: {} -> {}",
field.getName(), Arrays.toString(genericTypes(field.getType(), RepositoryManagement.class))))
.filter(field -> Arrays.equals(genericTypes(field.getType(), RepositoryManagement.class), abstractTestTypeArgs))
.map(field -> {
field.setAccessible(true);

View File

@@ -26,8 +26,9 @@ logging.level.org.eclipse.hawkbit.repository.test.matcher.EventVerifier=${NOISE_
### Debug & Monitor Eclipselink - START
logging.level.org.eclipse.persistence=${NOISE_SUPPRESS_LEVEL}
## Uncomment to see the debug of persistence, e.g. to see the generated SQLs
## Uncomment props to see the debug of persistence, e.g. to see the generated SQLs
#logging.level.org.eclipse.persistence=DEBUG
## EclipseLink loging levels - OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
#spring.jpa.properties.eclipselink.logging.level=FINE
#spring.jpa.properties.eclipselink.logging.level.sql=FINE
#spring.jpa.properties.eclipselink.logging.parameters=true