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
|
# Logging END
|
||||||
hawkbit.events.remote.enabled=false
|
hawkbit.events.remote.enabled=false
|
||||||
|
|
||||||
logging.level.org.eclipse.persistence=DEBUG
|
## Uncomment props to see the debug of persistence, e.g. to see the generated SQLs
|
||||||
spring.jpa.properties.eclipselink.logging.level=FINE
|
#logging.level.org.eclipse.persistence=DEBUG
|
||||||
spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
## EclipseLink loging levels - OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
|
||||||
spring.jpa.properties.eclipselink.logging.parameters=true
|
#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>(
|
return new RepoMan<T, C, U>(
|
||||||
fields.stream()
|
fields.stream()
|
||||||
.peek(field -> System.out.println("Found RepositoryManagement field: " + field.getName() + "-> " + Arrays.toString(
|
.peek(field -> log.debug("Found RepositoryManagement field: {} -> {}",
|
||||||
genericTypes(field.getType(), RepositoryManagement.class))))
|
field.getName(), Arrays.toString(genericTypes(field.getType(), RepositoryManagement.class))))
|
||||||
.filter(field -> Arrays.equals(genericTypes(field.getType(), RepositoryManagement.class), abstractTestTypeArgs))
|
.filter(field -> Arrays.equals(genericTypes(field.getType(), RepositoryManagement.class), abstractTestTypeArgs))
|
||||||
.map(field -> {
|
.map(field -> {
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ logging.level.org.eclipse.hawkbit.repository.test.matcher.EventVerifier=${NOISE_
|
|||||||
|
|
||||||
### Debug & Monitor Eclipselink - START
|
### Debug & Monitor Eclipselink - START
|
||||||
logging.level.org.eclipse.persistence=${NOISE_SUPPRESS_LEVEL}
|
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
|
#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=FINE
|
||||||
#spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
#spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
||||||
#spring.jpa.properties.eclipselink.logging.parameters=true
|
#spring.jpa.properties.eclipselink.logging.parameters=true
|
||||||
|
|||||||
@@ -13,9 +13,14 @@
|
|||||||
logging.level.root=WARN
|
logging.level.root=WARN
|
||||||
logging.level.org.eclipse.hawkbit.repository.test.matcher.EventVerifier=ERROR
|
logging.level.org.eclipse.hawkbit.repository.test.matcher.EventVerifier=ERROR
|
||||||
logging.level.org.eclipse.persistence=ERROR
|
logging.level.org.eclipse.persistence=ERROR
|
||||||
spring.jpa.properties.eclipselink.logging.level=FINE
|
## Uncomment props to see the debug of persistence, e.g. to see the generated SQLs
|
||||||
spring.jpa.properties.eclipselink.logging.level.sql=FINE
|
#logging.level.org.eclipse.persistence=DEBUG
|
||||||
spring.jpa.properties.eclipselink.logging.parameters=true
|
## 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
|
## Logging - END
|
||||||
# Test utility properties for easier fault investigation - END
|
# Test utility properties for easier fault investigation - END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user