Add debug log entry when checking permission groups.