KEYCLOAK-11693 Clean startup log output in Keycloak.X
This commit is contained in:
parent
e0ea961599
commit
4f93dc8376
5 changed files with 9 additions and 5 deletions
|
@ -5,3 +5,8 @@ db=h2-file
|
||||||
%dev.http.enabled=true
|
%dev.http.enabled=true
|
||||||
%dev.db.username = sa
|
%dev.db.username = sa
|
||||||
%dev.db.password = keycloak
|
%dev.db.password = keycloak
|
||||||
|
|
||||||
|
# Logging configuration. INFO is the default level for most of the categories
|
||||||
|
#quarkus.log.level = DEBUG
|
||||||
|
quarkus.log.category."org.jboss.resteasy.resteasy_jaxrs.i18n".level=WARN
|
||||||
|
quarkus.log.category."org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup".level=WARN
|
||||||
|
|
|
@ -243,7 +243,7 @@ public class DefaultJpaConnectionProviderFactory implements JpaConnectionProvide
|
||||||
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());
|
logger.infof("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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,7 +143,7 @@ public final class PropertyMappers {
|
||||||
return "org.mariadb.jdbc.MySQLDataSource";
|
return "org.mariadb.jdbc.MySQLDataSource";
|
||||||
case "mysql":
|
case "mysql":
|
||||||
return "com.mysql.cj.jdbc.MysqlXADataSource";
|
return "com.mysql.cj.jdbc.MysqlXADataSource";
|
||||||
case "postgress":
|
case "postgres":
|
||||||
case "postgres-95":
|
case "postgres-95":
|
||||||
case "postgres-10":
|
case "postgres-10":
|
||||||
return "org.postgresql.xa.PGXADataSource";
|
return "org.postgresql.xa.PGXADataSource";
|
||||||
|
|
|
@ -169,7 +169,7 @@ public class QuarkusJpaConnectionProviderFactory implements JpaConnectionProvide
|
||||||
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());
|
logger.infof("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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,3 @@ quarkus.package.main-class=keycloak
|
||||||
quarkus.http.root-path=/auth
|
quarkus.http.root-path=/auth
|
||||||
quarkus.application.name=Keycloak
|
quarkus.application.name=Keycloak
|
||||||
quarkus.banner.enabled=false
|
quarkus.banner.enabled=false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue