Browse Source

update log level.

deason 6 years ago
parent
commit
38a565dc0e

+ 1 - 1
examcloud-core-print-starter/src/main/resources/application-dev.properties

@@ -3,7 +3,7 @@ spring.datasource.url=jdbc:mysql://db-host:3306/exam_cloud_kf?useUnicode=true&ch
 spring.datasource.username=root
 spring.datasource.password=root
 spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
+spring.jpa.show-sql=false
 # mongodb config
 spring.data.mongodb.uri=mongodb://db-host:27017/examcloud-core-print
 spring.data.mongodb.grid-fs-database=examcloud-core-print

+ 1 - 1
examcloud-core-print-starter/src/main/resources/application-prod.properties

@@ -3,7 +3,7 @@ spring.datasource.url=jdbc:mysql://db-host:3306/exam_cloud_kf?useUnicode=true&ch
 spring.datasource.username=root
 spring.datasource.password=root
 spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
+spring.jpa.show-sql=false
 # mongodb config
 spring.data.mongodb.uri=mongodb://db-host:27017/examcloud-core-print
 spring.data.mongodb.grid-fs-database=examcloud-core-print

+ 1 - 1
examcloud-core-print-starter/src/main/resources/application-test.properties

@@ -3,7 +3,7 @@ spring.datasource.url=jdbc:mysql://db-host:3306/exam_cloud_kf?useUnicode=true&ch
 spring.datasource.username=root
 spring.datasource.password=root
 spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
+spring.jpa.show-sql=false
 # mongodb config
 spring.data.mongodb.uri=mongodb://db-host:27017/examcloud-core-print
 spring.data.mongodb.grid-fs-database=examcloud-core-print

+ 7 - 6
examcloud-core-print-starter/src/main/resources/logback-spring.xml

@@ -34,18 +34,18 @@
         </rollingPolicy>
     </appender>
 
-    <logger name="INTERFACE_LOGGER" level="DEBUG" additivity="false">
+    <logger name="INTERFACE_LOGGER" level="WARN" additivity="false">
         <appender-ref ref="INTERFACE_APPENDER"/>
         <appender-ref ref="STDOUT"/>
     </logger>
 
-    <logger name="cn.com.qmth.examcloud" level="DEBUG" additivity="false">
+    <logger name="cn.com.qmth.examcloud" level="WARN" additivity="false">
         <appender-ref ref="DEBUG_APPENDER"/>
         <appender-ref ref="STDOUT"/>
     </logger>
 
-    <logger name="org.springframework.jdbc.core.JdbcTemplate" level="DEBUG"/>
-    <logger name="org.springframework.data.mongodb" level="DEBUG"/>
+    <logger name="org.springframework.jdbc.core.JdbcTemplate" level="WARN"/>
+    <logger name="org.springframework.data.mongodb" level="WARN"/>
     <logger name="org.springframework" level="WARN"/>
     <logger name="org.hibernate" level="WARN"/>
     <logger name="org.apache" level="WARN"/>
@@ -53,9 +53,10 @@
     <logger name="springfox.documentation" level="WARN"/>
     <logger name="cn.afterturn.easypoi" level="WARN"/>
     <logger name="com.netflix" level="WARN"/>
-    <logger name="cn.com.qmth.examcloud.commons" level="DEBUG"/>
+    <logger name="cn.com.qmth.examcloud.commons" level="WARN"/>
+    <logger name="cn.com.qmth.examcloud.core.print.service.impl" level="DEBUG"/>
 
-    <root level="DEBUG">
+    <root level="WARN">
         <appender-ref ref="DEBUG_APPENDER"/>
         <appender-ref ref="STDOUT"/>
     </root>