style: 修改错误日志

This commit is contained in:
2024-08-09 04:29:36 +08:00
parent 20f395fa45
commit 69432dbbc8

View File

@@ -7,6 +7,8 @@ import cn.hamster3.mc.plugin.core.common.api.CoreAPI;
import com.google.common.eventbus.EventBus;
import redis.clients.jedis.JedisPubSub;
import java.util.logging.Level;
public class BallRedisListener extends JedisPubSub {
public static final BallRedisListener INSTANCE = new BallRedisListener();
@@ -32,7 +34,7 @@ public class BallRedisListener extends JedisPubSub {
}
eventBus.post(new MessageReceivedEvent(finalChannel, ballMessage));
} catch (Exception | Error e) {
e.printStackTrace();
BallAPI.getInstance().getLogger().log(Level.SEVERE, "解析来自频道 " + channel + " 的数据出错: " + message, e);
}
});
}