mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Removed DEV from version
This commit is contained in:
parent
9d3def37af
commit
78b4abc0a3
@ -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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: Plan
|
||||
author: Rsl1122
|
||||
main: com.djrapitops.plan.PlanBungee
|
||||
version: 4.1.5-DEV
|
||||
version: 4.1.5
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user