summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-02 18:30:59 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-02 18:30:59 +0100
commit842d9f73a4c1200fea5096e1d4999ac2cca168db (patch)
tree734eaa7b01dc09b31c4a4f234fdf145b7846da5f
parentc2893788e79bc6501e3aefae5daa2775d4f95e17 (diff)
downloadEssentials-842d9f73a4c1200fea5096e1d4999ac2cca168db.tar
Essentials-842d9f73a4c1200fea5096e1d4999ac2cca168db.tar.gz
Essentials-842d9f73a4c1200fea5096e1d4999ac2cca168db.tar.lz
Essentials-842d9f73a4c1200fea5096e1d4999ac2cca168db.tar.xz
Essentials-842d9f73a4c1200fea5096e1d4999ac2cca168db.zip
More error on 'Permissions system error' in debug mode.
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index 90a3679c4..f974953d9 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -88,7 +88,15 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
}
catch (Exception ex)
{
- ess.getLogger().log(Level.SEVERE, "Permission System Error: " + ess.getPermissionsHandler().getName() + " returned: " + ex.getMessage());
+ if (ess.getSettings().isDebug())
+ {
+ ess.getLogger().log(Level.SEVERE, "Permission System Error: " + ess.getPermissionsHandler().getName() + " returned: " + ex.getMessage(), ex);
+ }
+ else
+ {
+ ess.getLogger().log(Level.SEVERE, "Permission System Error: " + ess.getPermissionsHandler().getName() + " returned: " + ex.getMessage());
+ }
+
return false;
}
}