mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-11 03:37:57 +00:00
chore(test): silence spring logs in backend tests (#116)
This commit is contained in:
parent
e60bee8aa1
commit
4bdaebe3b4
2 changed files with 23 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
banner-mode: "off"
|
||||
log-startup-info: false
|
||||
datasource:
|
||||
url: jdbc:h2:mem:testdb;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DEFAULT_NULL_ORDERING=HIGH;INIT=CREATE DOMAIN IF NOT EXISTS JSONB AS JSON;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
||||
driver-class-name: org.h2.Driver
|
||||
|
|
@ -38,3 +40,9 @@ skillhub:
|
|||
enforce-active-user-check: false
|
||||
access-policy:
|
||||
mode: OPEN
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: ERROR
|
||||
com.iflytek.skillhub: ERROR
|
||||
org.springframework: ERROR
|
||||
|
|
|
|||
15
server/skillhub-app/src/test/resources/logback-test.xml
Normal file
15
server/skillhub-app/src/test/resources/logback-test.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="ERROR">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
||||
<logger name="com.iflytek.skillhub" level="ERROR" />
|
||||
<logger name="org.springframework" level="ERROR" />
|
||||
</configuration>
|
||||
Loading…
Add table
Reference in a new issue