mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-12 15:56:00 +08:00
Fixed CacheInspectPageRequest debug-logging an exception message
This commit is contained in:
parent
e0b05cc169
commit
c84871496c
@ -46,14 +46,12 @@ public class BungeeConnectionSystem extends ConnectionSystem {
|
|||||||
protected Server selectServerForRequest(InfoRequest infoRequest) throws NoServersException {
|
protected Server selectServerForRequest(InfoRequest infoRequest) throws NoServersException {
|
||||||
refreshServerMap();
|
refreshServerMap();
|
||||||
Server server = null;
|
Server server = null;
|
||||||
if (infoRequest instanceof CacheRequest) {
|
if (infoRequest instanceof CacheRequest || infoRequest instanceof GenerateInspectPageRequest) {
|
||||||
throw new NoServersException("Bungee should not send Cache requests.");
|
// Run locally
|
||||||
|
return ServerInfo.getServer();
|
||||||
} else if (infoRequest instanceof GenerateAnalysisPageRequest) {
|
} else if (infoRequest instanceof GenerateAnalysisPageRequest) {
|
||||||
UUID serverUUID = ((GenerateAnalysisPageRequest) infoRequest).getServerUUID();
|
UUID serverUUID = ((GenerateAnalysisPageRequest) infoRequest).getServerUUID();
|
||||||
server = bukkitServers.get(serverUUID);
|
server = bukkitServers.get(serverUUID);
|
||||||
} else if (infoRequest instanceof GenerateInspectPageRequest) {
|
|
||||||
// Run locally
|
|
||||||
server = ServerInfo.getServer();
|
|
||||||
}
|
}
|
||||||
if (server == null) {
|
if (server == null) {
|
||||||
throw new NoServersException("Proper server is not available to process request: " + infoRequest.getClass().getSimpleName());
|
throw new NoServersException("Proper server is not available to process request: " + infoRequest.getClass().getSimpleName());
|
||||||
|
Loading…
Reference in New Issue
Block a user