Add version type/number/modifier to crash reports (#221)
This commit is contained in:
@@ -37,6 +37,9 @@ public class CrashHandler{
|
|||||||
boolean fn = netActive, fs = netServer;
|
boolean fn = netActive, fs = netServer;
|
||||||
|
|
||||||
//add all relevant info, ignoring exceptions
|
//add all relevant info, ignoring exceptions
|
||||||
|
ex(() -> value.addChild("versionType", new JsonValue(Version.type)));
|
||||||
|
ex(() -> value.addChild("versionNumber", new JsonValue(Version.number)));
|
||||||
|
ex(() -> value.addChild("versionModifier", new JsonValue(Version.modifier)));
|
||||||
ex(() -> value.addChild("build", new JsonValue(Version.build)));
|
ex(() -> value.addChild("build", new JsonValue(Version.build)));
|
||||||
ex(() -> value.addChild("net", new JsonValue(fn)));
|
ex(() -> value.addChild("net", new JsonValue(fn)));
|
||||||
ex(() -> value.addChild("server", new JsonValue(fs)));
|
ex(() -> value.addChild("server", new JsonValue(fs)));
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class CrashHandler{
|
|||||||
JsonValue value = new JsonValue(ValueType.object);
|
JsonValue value = new JsonValue(ValueType.object);
|
||||||
|
|
||||||
//add all relevant info, ignoring exceptions
|
//add all relevant info, ignoring exceptions
|
||||||
|
ex(() -> value.addChild("versionType", new JsonValue(Version.type)));
|
||||||
|
ex(() -> value.addChild("versionNumber", new JsonValue(Version.number)));
|
||||||
|
ex(() -> value.addChild("versionModifier", new JsonValue(Version.modifier)));
|
||||||
ex(() -> value.addChild("build", new JsonValue(Version.build)));
|
ex(() -> value.addChild("build", new JsonValue(Version.build)));
|
||||||
ex(() -> value.addChild("mode", new JsonValue(Vars.state.mode.name())));
|
ex(() -> value.addChild("mode", new JsonValue(Vars.state.mode.name())));
|
||||||
ex(() -> value.addChild("state", new JsonValue(Vars.state.getState().name())));
|
ex(() -> value.addChild("state", new JsonValue(Vars.state.getState().name())));
|
||||||
|
|||||||
Reference in New Issue
Block a user