Skip to content

Commit

Permalink
reduce test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam committed May 5, 2018
1 parent 5df16b8 commit cb1ec33
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring.datasource.url = jdbc:h2:mem:~/apolloconfigdb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1
spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.show_sql=false
spring.h2.console.enabled = true
spring.h2.console.settings.web-allow-others=true

4 changes: 2 additions & 2 deletions apollo-adminservice/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</appender>
<logger name="org.springframework.test" level="OFF" />

<root level="INFO">
<root level="WARN">
<appender-ref ref="CONSOLE" />
</root>

</configuration>
</configuration>
2 changes: 1 addition & 1 deletion apollo-assembly/src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring.datasource.url = jdbc:h2:mem:~/apolloconfigdb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE
spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.show_sql=false
spring.h2.console.enabled = true
spring.h2.console.settings.web-allow-others=true
apollo.portal.env= local
4 changes: 2 additions & 2 deletions apollo-assembly/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</appender>
<logger name="org.springframework.test" level="OFF" />

<root level="INFO">
<root level="WARN">
<appender-ref ref="CONSOLE" />
</root>

</configuration>
</configuration>
2 changes: 1 addition & 1 deletion apollo-biz/src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring.datasource.url = jdbc:h2:mem:~/apolloconfigdb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE
spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.show_sql=false
spring.h2.console.enabled = true
spring.h2.console.settings.web-allow-others=true

4 changes: 2 additions & 2 deletions apollo-biz/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</appender>
<logger name="org.springframework.test" level="OFF" />

<root level="INFO">
<root level="WARN">
<appender-ref ref="CONSOLE" />
</root>

</configuration>
</configuration>
2 changes: 1 addition & 1 deletion apollo-client/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</appenders>
<loggers>
<logger name="com.ctrip.framework.apollo" additivity="false" level="trace">
<AppenderRef ref="Async" level="DEBUG"/>
<AppenderRef ref="Async" level="WARN"/>
</logger>
<root level="INFO">
<AppenderRef ref="Async"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring.datasource.url = jdbc:h2:mem:~/apolloconfigdb;mode=mysql;DB_CLOSE_ON_EXIT
spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.h2.console.enabled = true
spring.h2.console.settings.web-allow-others=true
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.show_sql=false

# for ReleaseMessageScanner test
apollo.message-scan.interval=100
4 changes: 2 additions & 2 deletions apollo-configservice/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</appender>
<logger name="org.springframework.test" level="OFF" />

<root level="INFO">
<root level="WARN">
<appender-ref ref="CONSOLE" />
</root>

</configuration>
</configuration>
2 changes: 1 addition & 1 deletion apollo-core/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</appenders>
<loggers>
<logger name="com.ctrip.framework.apollo" additivity="false" level="trace">
<AppenderRef ref="Async" level="DEBUG"/>
<AppenderRef ref="Async" level="WARN"/>
</logger>
<root level="INFO">
<AppenderRef ref="Async"/>
Expand Down
2 changes: 1 addition & 1 deletion apollo-portal/src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring.datasource.url = jdbc:h2:mem:~/apolloportaldb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1
spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.show_sql=false
spring.h2.console.enabled = true
spring.h2.console.settings.web-allow-others=true
4 changes: 2 additions & 2 deletions apollo-portal/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</appender>
<logger name="org.springframework.test" level="OFF" />

<root level="INFO">
<root level="WARN">
<appender-ref ref="CONSOLE" />
</root>

</configuration>
</configuration>

0 comments on commit cb1ec33

Please sign in to comment.