权限控制优化

This commit is contained in:
gaoyutao
2025-12-09 19:25:51 +08:00
parent 1f133e8c05
commit 13e51c11e1
8 changed files with 55 additions and 11 deletions
@@ -57,6 +57,26 @@
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 简化版debug.log配置,只包含日志框架的输出 -->
<appender name="file_debug" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/debug.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}/debug.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<!-- 记录DEBUG及以上级别,但不记录ERROR(ERROR有单独文件) -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>DENY</onMatch>
<onMismatch>NEUTRAL</onMismatch>
</filter>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
</appender>
<!-- RocketMQ模块日志级别控制 -->
@@ -43,6 +43,7 @@
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
<if test="resultFlag != null "> and result_flag = #{resultFlag}</if>
<if test="scriptId != null "> and script_id = #{scriptId}</if>
and script_id != ''
</where>
<choose>
<when test="clientId != null and clientId != ''">