Fail debugs

This commit is contained in:
Rsl1122 2018-02-23 19:11:31 +02:00
parent cdc4f36f2e
commit 3cb1955928

View File

@ -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.