chore(test): silence spring logs in backend tests (#116)

This commit is contained in:
Xudong Sun 2026-03-19 18:38:59 +08:00 • committed by GitHub
parent e60bee8aa1
commit 4bdaebe3b4
2 changed files with 23 additions and 0 deletions

View file

@ -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

View 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>