Merge pull request #2349 from mposolda/master
Log DB info in arquillian testsuite
This commit is contained in:
commit
321b23a78d
2 changed files with 4 additions and 1 deletions
|
@ -218,6 +218,8 @@ public class DefaultJpaConnectionProviderFactory implements JpaConnectionProvide
|
||||||
operationalInfo.put("databaseUser", md.getUserName());
|
operationalInfo.put("databaseUser", md.getUserName());
|
||||||
operationalInfo.put("databaseProduct", md.getDatabaseProductName() + " " + md.getDatabaseProductVersion());
|
operationalInfo.put("databaseProduct", md.getDatabaseProductName() + " " + md.getDatabaseProductVersion());
|
||||||
operationalInfo.put("databaseDriver", md.getDriverName() + " " + md.getDriverVersion());
|
operationalInfo.put("databaseDriver", md.getDriverName() + " " + md.getDriverVersion());
|
||||||
|
|
||||||
|
logger.debugf("Database info: %s", operationalInfo.toString());
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
logger.warn("Unable to prepare operational info due database exception: " + e.getMessage());
|
logger.warn("Unable to prepare operational info due database exception: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,8 @@ log4j.additivity.org.keycloak.testsuite=false
|
||||||
|
|
||||||
# Liquibase updates logged with "info" by default. Logging level can be changed by system property "keycloak.liquibase.logging.level"
|
# Liquibase updates logged with "info" by default. Logging level can be changed by system property "keycloak.liquibase.logging.level"
|
||||||
keycloak.liquibase.logging.level=info
|
keycloak.liquibase.logging.level=info
|
||||||
log4j.logger.org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider=${keycloak.liquibase.logging.level}
|
log4j.logger.org.keycloak.connections.jpa.updater.liquibase=${keycloak.liquibase.logging.level}
|
||||||
|
log4j.logger.org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory=debug
|
||||||
|
|
||||||
# Enable to view database updates
|
# Enable to view database updates
|
||||||
# log4j.logger.org.keycloak.connections.mongo.updater.DefaultMongoUpdaterProvider=debug
|
# log4j.logger.org.keycloak.connections.mongo.updater.DefaultMongoUpdaterProvider=debug
|
||||||
|
|
Loading…
Reference in a new issue