feat: 优化日志

This commit is contained in:
2023-08-21 00:00:35 +08:00
parent 6aac1fafd6
commit 2a11117b8c
13 changed files with 86 additions and 26 deletions

View File

@@ -3,8 +3,9 @@
dependencies {
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compileOnly("com.google.code.gson:gson:2.8.0")
// https://mvnrepository.com/artifact/io.netty/netty-all
compileOnly("io.netty:netty-all:4.1.86.Final")
// https://mvnrepository.com/artifact/io.netty/netty-buffer
compileOnly("io.netty:netty-buffer:4.1.96.Final")
val hamsterCoreVersion = property("hamster_core_version")
compileOnly("cn.hamster3.mc.plugin:core-common:${hamsterCoreVersion}")

View File

@@ -209,10 +209,10 @@ public abstract class BallAPI {
}
}
}
enabled = true;
RTopic topic = getRedissonClient().getTopic(BALL_CHANNEL, BallMessageInfoCodec.INSTANCE);
topic.addListener(BallMessageInfo.class, BallMessageListener.INSTANCE);
enabled = true;
}
protected void disable() throws SQLException, InterruptedException {
@@ -233,7 +233,9 @@ public abstract class BallAPI {
statement.executeUpdate();
}
}
getLogger().info("正在关闭 redission...");
getRedissonClient().shutdown();
getLogger().info("已关闭 redission.");
}
/**