Removed DEV from version

This commit is contained in:
Rsl1122 2018-02-12 14:39:39 +02:00
parent 9d3def37af
commit 78b4abc0a3
3 changed files with 18 additions and 11 deletions

View File

@ -35,15 +35,9 @@ public class WebExceptionLogger {
}
private static boolean shouldLog(ConnectionFailException e) {
String address = null;
if (e.getMessage().contains("to address")) {
String[] split = e.getMessage().split("to address: ");
if (split.length == 2) {
String[] split2 = split[1].split("<br>");
if (split2.length == 2) {
address = split2[0];
}
}
String address = getAddress(e);
if (address == null) {
return true;
}
Map<String, Map<String, ConnectionLog.Entry>> logEntries = ConnectionLog.getLogEntries();
Map<String, ConnectionLog.Entry> entries = logEntries.get("Out: " + address);
@ -55,6 +49,19 @@ public class WebExceptionLogger {
return true;
}
private static String getAddress(ConnectionFailException e) {
if (e.getMessage().contains("to address")) {
String[] split = e.getMessage().split("to address: ");
if (split.length == 2) {
String[] split2 = split[1].split("<br>");
if (split2.length == 2) {
return split2[0];
}
}
}
return null;
}
public interface ExceptionLoggingAction {
void performAction() throws WebException;

View File

@ -1,4 +1,4 @@
name: Plan
author: Rsl1122
main: com.djrapitops.plan.PlanBungee
version: 4.1.5-DEV
version: 4.1.5

View File

@ -1,7 +1,7 @@
name: Plan
author: Rsl1122
main: com.djrapitops.plan.Plan
version: 4.1.5-DEV
version: 4.1.5
softdepend:
- EssentialsX
- Towny