Skip to content

Commit 98db3b2

Browse files
committed
update log level
1 parent 13e2974 commit 98db3b2

2 files changed

Lines changed: 11 additions & 17 deletions

File tree

.idea/workspace.xml

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/application.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ logging:
1212
level:
1313
# 全局日志级别
1414
root: info
15-
# 框架日志级别 - 调整为INFO/WARN以减少输出
15+
# 框架日志级别
1616
org.springframework: INFO
1717
org.springframework.web.socket: INFO
1818
org.springframework.messaging: INFO
1919
org.springframework.data.redis: WARN
20-
# 业务包日志级别 - 保留DEBUG用于调试
21-
org.springframework.jdbc.core.JdbcTemplate: DEBUG
20+
# 业务包日志级别
2221
com.phantoms.phantomsbackend: DEBUG
2322
# 数据库日志
24-
springfox: DEBUG
25-
org.hibernate.SQL: DEBUG
26-
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
27-
org.postgresql: DEBUG
23+
org.springframework.jdbc.core.JdbcTemplate: WARN
24+
org.hibernate.SQL: WARN
25+
org.hibernate.type.descriptor.sql.BasicBinder: WARN
26+
org.postgresql: WARN
27+
com.zaxxer.hikari: WARN
28+
# 其他框架日志
29+
springfox: WARN
2830

2931
spring:
3032
# 应用名称[citation:4]
@@ -79,7 +81,7 @@ spring:
7981
database-platform: org.hibernate.dialect.PostgreSQLDialect
8082
hibernate:
8183
ddl-auto: validate
82-
show-sql: true
84+
show-sql: false
8385

8486
# E-mail (QQ 邮箱配置)
8587
mail:

0 commit comments

Comments
 (0)