mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Fail debugs
This commit is contained in:
parent
cdc4f36f2e
commit
3cb1955928
@ -30,7 +30,7 @@ import java.util.UUID;
|
||||
* Information management system.
|
||||
* <p>
|
||||
* Subclasses should decide how InfoRequests are run locally if necessary.
|
||||
*
|
||||
* <p>
|
||||
* Everything should be called from an Async thread.
|
||||
*
|
||||
* @author Rsl1122
|
||||
@ -68,7 +68,7 @@ public abstract class InfoSystem implements SubSystem {
|
||||
|
||||
/**
|
||||
* Refreshes Analysis page.
|
||||
*
|
||||
* <p>
|
||||
* No calls from non-async thread found on 09.02.2018
|
||||
*
|
||||
* @param serverUUID UUID of the server to analyze
|
||||
@ -85,7 +85,7 @@ public abstract class InfoSystem implements SubSystem {
|
||||
|
||||
/**
|
||||
* Send an InfoRequest to another server or run locally if necessary.
|
||||
*
|
||||
* <p>
|
||||
* No calls from non-async thread found on 09.02.2018
|
||||
*
|
||||
* @param infoRequest InfoRequest to send or run.
|
||||
@ -94,13 +94,14 @@ public abstract class InfoSystem implements SubSystem {
|
||||
public void sendRequest(InfoRequest infoRequest) throws WebException {
|
||||
try {
|
||||
if (!connectionSystem.isServerAvailable()) {
|
||||
Log.debug("Main server unavailable, running locally.");
|
||||
runLocally(infoRequest);
|
||||
return;
|
||||
}
|
||||
connectionSystem.sendInfoRequest(infoRequest);
|
||||
} catch (WebException original) {
|
||||
try {
|
||||
// Attempt to run locally.
|
||||
Log.debug("Exception during request: " + original.toString() + ", running locally.");
|
||||
runLocally(infoRequest);
|
||||
} catch (NoServersException e2) {
|
||||
throw original;
|
||||
@ -110,7 +111,7 @@ public abstract class InfoSystem implements SubSystem {
|
||||
|
||||
/**
|
||||
* Run the InfoRequest locally.
|
||||
*
|
||||
* <p>
|
||||
* No calls from non-async thread found on 09.02.2018
|
||||
*
|
||||
* @param infoRequest InfoRequest to run.
|
||||
@ -144,7 +145,7 @@ public abstract class InfoSystem implements SubSystem {
|
||||
|
||||
/**
|
||||
* Updates Network page.
|
||||
*
|
||||
* <p>
|
||||
* No calls from non-async thread found on 09.02.2018
|
||||
*
|
||||
* @throws WebException If fails.
|
||||
@ -153,7 +154,7 @@ public abstract class InfoSystem implements SubSystem {
|
||||
|
||||
/**
|
||||
* Requests Set up from Bungee.
|
||||
*
|
||||
* <p>
|
||||
* No calls from non-async thread found on 09.02.2018
|
||||
*
|
||||
* @param addressToRequestServer Address of Bungee server.
|
||||
|
Loading…
Reference in New Issue
Block a user