Timeout message address + debug log instead of warn

This commit is contained in:
Rsl1122 2018-08-12 10:46:53 +03:00
parent 08cb206977
commit 07a0855432
2 changed files with 3 additions and 3 deletions

View File

@ -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:");

View File

@ -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);
}