mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-03 05:51:28 +01:00
Timeout message address + debug log instead of warn
This commit is contained in:
parent
08cb206977
commit
07a0855432
@ -92,7 +92,7 @@ public class ConnectionOut {
|
||||
handleResult(url, parameters, responseCode);
|
||||
} catch (SocketTimeoutException e) {
|
||||
ConnectionLog.logConnectionTo(toServer, infoRequest, 0);
|
||||
throw new ConnectionFailException("Connection timed out after 10 seconds.", e);
|
||||
throw new ConnectionFailException("Connection to " + address + " timed out after 10 seconds.", e);
|
||||
} catch (NoSuchAlgorithmException | KeyStoreException | KeyManagementException | IOException e) {
|
||||
if (Settings.DEV_MODE.isTrue()) {
|
||||
Log.warn("THIS ERROR IS ONLY LOGGED IN DEV MODE:");
|
||||
|
@ -25,11 +25,11 @@ public class WebExceptionLogger {
|
||||
function.apply();
|
||||
} catch (ConnectionFailException e) {
|
||||
if (shouldLog(e)) {
|
||||
Log.warn(e.getMessage());
|
||||
Log.debug(e.getMessage());
|
||||
}
|
||||
} catch (UnsupportedTransferDatabaseException | UnauthorizedServerException
|
||||
| NotFoundException | NoServersException e) {
|
||||
Log.warn(e.getMessage());
|
||||
Log.debug(e.getMessage());
|
||||
} catch (WebException e) {
|
||||
Log.toLog(c, e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user