Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit fa0976a

Browse files
committed
logging check
1 parent f2b95ea commit fa0976a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

initializers/v3client.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,11 @@ function getMemberGroups(connection, callback) {
231231
} else {
232232
var groupResponse = body.result.content;
233233
while(groupResponse) {
234-
console.log("group id to add: " + groupResponse.id);
235234
memberGroups.push(groupResponse.id);
236-
console.log("member group ids: " + memberGroups);
237235
groupResponse = groupResponse.parentGroup;
238236
}
239237

240238
if (groupIds.length == 0) {
241-
console.log("member groups: " + memberGroups);
242239
callback(null, memberGroups);
243240
}
244241

@@ -267,7 +264,11 @@ exports.v3client = function (api, next) {
267264
if (err) {
268265
callback(err);
269266
} else {
270-
console.log("challenge group id: " + groupId);
267+
console.log("member groups:");
268+
console.log(groupIds);
269+
console.log("challenge group id:");
270+
console.log(groupId);
271+
console.log(groupIds.indexOf(groupId) >= 0);
271272

272273
callback(null, groupIds.indexOf(groupId) >= 0);
273274
}

0 commit comments

Comments
 (0)