mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 05:08:48 +00:00
Include the GM version when logging errors.
This commit is contained in:
parent
cfe634e8f7
commit
79c70b1f65
|
@ -196,3 +196,4 @@ v 2.0:
|
||||||
- Fix an error with Logging set to 'OFF' triggering a cast exception.
|
- Fix an error with Logging set to 'OFF' triggering a cast exception.
|
||||||
- No more null errors from corrupt config.yml's.
|
- No more null errors from corrupt config.yml's.
|
||||||
- Give a better error when a subgroup is null.
|
- Give a better error when a subgroup is null.
|
||||||
|
- Include the GM version when logging errors.
|
|
@ -246,7 +246,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
lastError = ex.getMessage();
|
lastError = ex.getMessage();
|
||||||
|
|
||||||
GroupManager.logger.severe("===================================================");
|
GroupManager.logger.severe("===================================================");
|
||||||
GroupManager.logger.severe("= ERROR REPORT START =");
|
GroupManager.logger.severe("= ERROR REPORT START - " + this.getDescription().getVersion() + " =");
|
||||||
GroupManager.logger.severe("===================================================");
|
GroupManager.logger.severe("===================================================");
|
||||||
GroupManager.logger.severe("=== PLEASE COPY AND PASTE THE ERROR.LOG FROM THE ==");
|
GroupManager.logger.severe("=== PLEASE COPY AND PASTE THE ERROR.LOG FROM THE ==");
|
||||||
GroupManager.logger.severe("= GROUPMANAGER FOLDER TO AN ESSENTIALS DEVELOPER =");
|
GroupManager.logger.severe("= GROUPMANAGER FOLDER TO AN ESSENTIALS DEVELOPER =");
|
||||||
|
@ -258,7 +258,9 @@ public class GroupManager extends JavaPlugin {
|
||||||
|
|
||||||
// Append this error to the error log.
|
// Append this error to the error log.
|
||||||
try {
|
try {
|
||||||
String error = "=============================== GM ERROR LOG ===============================\n\n";
|
String error = "=============================== GM ERROR LOG ===============================\n";
|
||||||
|
error += "= ERROR REPORT START - " + this.getDescription().getVersion() + " =\n\n";
|
||||||
|
|
||||||
error += Tasks.getStackTraceAsString(ex);
|
error += Tasks.getStackTraceAsString(ex);
|
||||||
error += "\n============================================================================\n";
|
error += "\n============================================================================\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue