This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push: new a98af45 [SCB-806] Polish alpha-server logger setting a98af45 is described below commit a98af45c2755b48c2053b30d34e721b579c3e8b7 Author: jeremyxu2010 <jeremyxu2...@gmail.com> AuthorDate: Mon Aug 6 10:09:08 2018 +0800 [SCB-806] Polish alpha-server logger setting [SCB-806] Polish alpha-server logger setting --- alpha/alpha-server/pom.xml | 10 ++++++++++ .../saga/persistence/jpa/EclipseLinkJpaConfiguration.java | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/alpha/alpha-server/pom.xml b/alpha/alpha-server/pom.xml index 85370c3..5958aad 100644 --- a/alpha/alpha-server/pom.xml +++ b/alpha/alpha-server/pom.xml @@ -77,6 +77,16 @@ <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> + <exclusions> + <exclusion> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <dependency> <groupId>org.apache.servicecomb.saga</groupId> diff --git a/saga-persistence/saga-persistence-jpa/src/main/java/org/apache/servicecomb/saga/persistence/jpa/EclipseLinkJpaConfiguration.java b/saga-persistence/saga-persistence-jpa/src/main/java/org/apache/servicecomb/saga/persistence/jpa/EclipseLinkJpaConfiguration.java index 2796aba..da3f334 100644 --- a/saga-persistence/saga-persistence-jpa/src/main/java/org/apache/servicecomb/saga/persistence/jpa/EclipseLinkJpaConfiguration.java +++ b/saga-persistence/saga-persistence-jpa/src/main/java/org/apache/servicecomb/saga/persistence/jpa/EclipseLinkJpaConfiguration.java @@ -18,6 +18,7 @@ package org.apache.servicecomb.saga.persistence.jpa; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import javax.sql.DataSource; @@ -47,6 +48,9 @@ public class EclipseLinkJpaConfiguration extends JpaBaseConfiguration { @Override protected Map<String, Object> getVendorProperties() { - return Collections.singletonMap("eclipselink.weaving", "false"); + Map<String, Object> props = new HashMap<>(); + props.put("eclipselink.weaving", "false"); + props.put("eclipselink.logging.logger", "JavaLogger"); + return props; } }