Showing
1 changed file
with
1 additions
and
1 deletions
@@ -50,7 +50,7 @@ public final class LogUtils { | @@ -50,7 +50,7 @@ public final class LogUtils { | ||
50 | 50 | ||
51 | // 3. 启动异步线程确保在指定时间之后失效 | 51 | // 3. 启动异步线程确保在指定时间之后失效 |
52 | long delay = expireSeconds > 0 && expireSeconds < MAX_EXPIRE_SECONDS ? expireSeconds : DEFAULT_EXPIRE_SECONDS; | 52 | long delay = expireSeconds > 0 && expireSeconds < MAX_EXPIRE_SECONDS ? expireSeconds : DEFAULT_EXPIRE_SECONDS; |
53 | - POOL.schedule(() -> logger.setLevel(srcLevel), delay, TimeUnit.SECONDS); | 53 | + POOL.schedule(() -> logger.setLevel(sourceLevelMap.getOrDefault(loggerName, srcLevel)), delay, TimeUnit.SECONDS); |
54 | 54 | ||
55 | // 4. 变更日志级别 | 55 | // 4. 变更日志级别 |
56 | logger.setLevel(level); | 56 | logger.setLevel(level); |
-
Please register or login to post a comment