fix: 修复日志问题

This commit is contained in:
2024-08-17 09:46:49 +08:00
parent 85ce774752
commit b17ad022d3

View File

@@ -25,10 +25,10 @@ public abstract class SimpleLogger {
public void log(@NotNull Level level, @NotNull Throwable throwable, @NotNull String msg, @NotNull Object... args) {
try {
log(level, String.format(msg, args), throwable);
log(level, throwable, String.format(msg, args));
} catch (Exception e) {
log(Level.WARNING, "输出日志 " + msg + Arrays.toString(args) + " 时遇到一个异常", e);
log(Level.WARNING, "异常参数: ", throwable);
log(Level.WARNING, "异常参数: ", e);
}
}