From 842d9f73a4c1200fea5096e1d4999ac2cca168db Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 2 Sep 2012 18:30:59 +0100 Subject: More error on 'Permissions system error' in debug mode. --- Essentials/src/com/earth2me/essentials/User.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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, 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; } } -- cgit v1.2.3