diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-10-20 17:45:37 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-10-20 17:45:37 +0100 |
commit | df5e56668239e8a4a0a26984de0c8eab9fdd3a0d (patch) | |
tree | c96f09f21adac61c751c209b7907f74f9696db6c | |
parent | 2538618835cc1c7797d8630e4139581d433b5a28 (diff) | |
download | Essentials-df5e56668239e8a4a0a26984de0c8eab9fdd3a0d.tar Essentials-df5e56668239e8a4a0a26984de0c8eab9fdd3a0d.tar.gz Essentials-df5e56668239e8a4a0a26984de0c8eab9fdd3a0d.tar.lz Essentials-df5e56668239e8a4a0a26984de0c8eab9fdd3a0d.tar.xz Essentials-df5e56668239e8a4a0a26984de0c8eab9fdd3a0d.zip |
Add debug log entry when checking permission groups.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/User.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index 9cfe5b7e7..940be64ee 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -651,7 +651,12 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es @Override public boolean inGroup(final String group) { - return ess.getPermissionsHandler().inGroup(base, group); + final boolean result = ess.getPermissionsHandler().inGroup(base, group); + if (ess.getSettings().isDebug()) + { + ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in " + group + " - " + result); + } + return result; } @Override |