From e4331404c0f6f72e2e31add4f41fadb29ebc4680 Mon Sep 17 00:00:00 2001 From: Mihnea Iancu Date: Thu, 26 Sep 2019 22:28:50 -0700 Subject: [PATCH] Update driver version, configure logging --- pom.xml | 2 +- src/main/java/com/example/postgresdemo/DataSourceConfig.java | 2 ++ src/main/resources/application.properties | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b82b576..aead880 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ com.yugabyte ysql - 42.2.7-yb-1-SNAPSHOT + 42.2.7-yb-1 org.springframework.boot diff --git a/src/main/java/com/example/postgresdemo/DataSourceConfig.java b/src/main/java/com/example/postgresdemo/DataSourceConfig.java index 1976f18..c44c0d9 100644 --- a/src/main/java/com/example/postgresdemo/DataSourceConfig.java +++ b/src/main/java/com/example/postgresdemo/DataSourceConfig.java @@ -1,5 +1,7 @@ package com.example.postgresdemo; +import com.yugabyte.YBConnectionLoadBalancingPolicy; +import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 02206d9..ba0290a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,3 +5,6 @@ spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialec # Hibernate ddl auto (create, create-drop, validate, update) spring.jpa.hibernate.ddl-auto = update + +logging.level.com.yugabyte: DEBUG +logging.level.com.datastax: WARN