Skip to content

Commit f36f5ec

Browse files
committed
Add debug log entry when checking permission groups.
1 parent b1d422b commit f36f5ec

File tree

1 file changed

+6
-1
lines changed
  • Essentials/src/com/earth2me/essentials

1 file changed

+6
-1
lines changed

Essentials/src/com/earth2me/essentials/User.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,12 @@ public String getGroup()
651651
@Override
652652
public boolean inGroup(final String group)
653653
{
654-
return ess.getPermissionsHandler().inGroup(base, group);
654+
final boolean result = ess.getPermissionsHandler().inGroup(base, group);
655+
if (ess.getSettings().isDebug())
656+
{
657+
ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in " + group + " - " + result);
658+
}
659+
return result;
655660
}
656661

657662
@Override

0 commit comments

Comments
 (0)