Add a little more group based debugging.

This commit is contained in:
KHobbits 2013-10-21 01:20:09 +01:00
parent f36f5ec0ce
commit 9aa88bdf8d

View File

@ -645,7 +645,12 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
@Override
public String getGroup()
{
return ess.getPermissionsHandler().getGroup(base);
final String result = ess.getPermissionsHandler().getGroup(base);
if (ess.getSettings().isDebug())
{
ess.getLogger().log(Level.INFO, "looking up groupname of " + base.getName() + " - " + result);
}
return result;
}
@Override
@ -654,7 +659,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
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);
ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in group " + group + " - " + result);
}
return result;
}