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