Optimize test logging (#3126)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -14,7 +14,11 @@ logging.level.root=WARN
|
||||
# Logging END
|
||||
hawkbit.events.remote.enabled=false
|
||||
|
||||
logging.level.org.eclipse.persistence=DEBUG
|
||||
spring.jpa.properties.eclipselink.logging.level=FINE
|
||||
spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
||||
spring.jpa.properties.eclipselink.logging.parameters=true
|
||||
## 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
|
||||
## Enable EclipseLink performance monitor (monitoring and profile)
|
||||
#spring.jpa.properties.eclipselink.profiler=PerformanceMonitor
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -13,9 +13,14 @@
|
||||
logging.level.root=WARN
|
||||
logging.level.org.eclipse.hawkbit.repository.test.matcher.EventVerifier=ERROR
|
||||
logging.level.org.eclipse.persistence=ERROR
|
||||
spring.jpa.properties.eclipselink.logging.level=FINE
|
||||
spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
||||
spring.jpa.properties.eclipselink.logging.parameters=true
|
||||
## 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
|
||||
## Enable EclipseLink performance monitor (monitoring and profile)
|
||||
#spring.jpa.properties.eclipselink.profiler=PerformanceMonitor
|
||||
## Logging - END
|
||||
# Test utility properties for easier fault investigation - END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user