You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/07/05 03:05:10 UTC
[shardingsphere-elasticjob-lite] branch master updated: Switch off
hibernate log when execute mvn install. (#944)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob-lite.git
The following commit(s) were added to refs/heads/master by this push:
new 103d293 Switch off hibernate log when execute mvn install. (#944)
103d293 is described below
commit 103d29314b31a77f751c52952a1db0c2c8a8ab8b
Author: keker <as...@163.com>
AuthorDate: Sun Jul 5 11:05:02 2020 +0800
Switch off hibernate log when execute mvn install. (#944)
---
.../src/main/resources/application.properties | 2 +-
.../{application.properties => log4j.properties} | 18 ++++--------------
.../src/main/resources/logback.xml | 2 +-
3 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/elastic-job-lite-console/src/main/resources/application.properties b/elastic-job-lite-console/src/main/resources/application.properties
index b07f5e5..6c493e8 100644
--- a/elastic-job-lite-console/src/main/resources/application.properties
+++ b/elastic-job-lite-console/src/main/resources/application.properties
@@ -28,4 +28,4 @@ spring.datasource.default.url=jdbc:h2:mem:
spring.datasource.default.username=sa
spring.datasource.default.password=
spring.jpa.database-platform=org.hibernate.dialect.HSQLDialect
-spring.jpa.show-sql=true
+spring.jpa.show-sql=false
diff --git a/elastic-job-lite-console/src/main/resources/application.properties b/elastic-job-lite-console/src/main/resources/log4j.properties
similarity index 65%
copy from elastic-job-lite-console/src/main/resources/application.properties
copy to elastic-job-lite-console/src/main/resources/log4j.properties
index b07f5e5..c737467 100644
--- a/elastic-job-lite-console/src/main/resources/application.properties
+++ b/elastic-job-lite-console/src/main/resources/log4j.properties
@@ -15,17 +15,7 @@
# limitations under the License.
#
-# Default web server port
-server.port=8899
-
-auth.root_username=root
-auth.root_password=root
-auth.guest_username=guest
-auth.guest_password=guest
-
-spring.datasource.default.driver-class-name=org.h2.Driver
-spring.datasource.default.url=jdbc:h2:mem:
-spring.datasource.default.username=sa
-spring.datasource.default.password=
-spring.jpa.database-platform=org.hibernate.dialect.HSQLDialect
-spring.jpa.show-sql=true
+log4j.logger.org.hibernate.ps.PreparedStatementCache=WARN
+log4j.logger.org.hibernate=WARN
+log4j.logger.org.hibernate.SQL=ERROR
+log4j.logger.org.hibernate.type=ERROR
diff --git a/elastic-job-lite-console/src/main/resources/logback.xml b/elastic-job-lite-console/src/main/resources/logback.xml
index 778719c..f6f1bae 100644
--- a/elastic-job-lite-console/src/main/resources/logback.xml
+++ b/elastic-job-lite-console/src/main/resources/logback.xml
@@ -18,7 +18,7 @@
<configuration>
<property name="log.directory" value="logs/" />
- <property name="log.context.name" value="dd-job-console" />
+ <property name="log.context.name" value="elastic-job-lite-console" />
<property name="log.charset" value="UTF-8" />
<property name="log.maxHistory" value="30" />
<property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />