diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-08-31 21:56:46 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-08-31 21:56:46 +0100 |
commit | 286c5293d8089b04cd3f131b7e344d9b72668cc0 (patch) | |
tree | 47f1e1d936e222b313fa184abaf7bb831fe4f7d6 /EssentialsGroupManager | |
parent | 2a241041b119bf6888eebf3f2f7d1473b38fa0c9 (diff) | |
download | Essentials-286c5293d8089b04cd3f131b7e344d9b72668cc0.tar Essentials-286c5293d8089b04cd3f131b7e344d9b72668cc0.tar.gz Essentials-286c5293d8089b04cd3f131b7e344d9b72668cc0.tar.lz Essentials-286c5293d8089b04cd3f131b7e344d9b72668cc0.tar.xz Essentials-286c5293d8089b04cd3f131b7e344d9b72668cc0.zip |
Include the GM version when logging errors.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/Changelog.txt | 3 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt index 78204d9b7..5b409d773 100644 --- a/EssentialsGroupManager/src/Changelog.txt +++ b/EssentialsGroupManager/src/Changelog.txt @@ -195,4 +195,5 @@ v 2.0: - Fix GlobalGroups not loading permission nodes.
- Fix an error with Logging set to 'OFF' triggering a cast exception.
- No more null errors from corrupt config.yml's.
- - Give a better error when a subgroup is null.
\ No newline at end of file + - Give a better error when a subgroup is null.
+ - Include the GM version when logging errors.
\ No newline at end of file diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 61bb41dd1..46ec861a3 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -246,7 +246,7 @@ public class GroupManager extends JavaPlugin { lastError = ex.getMessage(); GroupManager.logger.severe("==================================================="); - GroupManager.logger.severe("= ERROR REPORT START ="); + GroupManager.logger.severe("= ERROR REPORT START - " + this.getDescription().getVersion() + " ="); GroupManager.logger.severe("==================================================="); GroupManager.logger.severe("=== PLEASE COPY AND PASTE THE ERROR.LOG FROM THE =="); 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. 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 += "\n============================================================================\n"; |