Skip to content

Commit

Permalink
Removed the ref to cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
ADLMeganBohland committed Jul 28, 2023
1 parent bb1afc4 commit 57b2a18
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions player/service/plugins/routes/v1/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,10 @@ module.exports = {
}

//Debug messages for troubleshooting host and path issuse - MB
if (cfg.degug) {
console.log("req.url.protocol is ", req.url.protocol);
console.log("req.url.host is ", req.url.host);
console.log("rootPath is ", rootPath);
}


const lmsActivityId = courseAu.lms_id,
publisherActivityId = course.metadata.aus[auIndex].id,
Expand Down Expand Up @@ -746,10 +745,8 @@ module.exports = {
};

//Debug messages for troubleshooting host and path issuse - MB
if (cfg.degug) {
console.log("Base url is ", baseUrl);
console.log("Which makes endpoint ", endpoint);
}

if (req.payload.contextTemplateAdditions) {
Hoek.merge(contextTemplate, req.payload.contextTemplateAdditions, { nullOverride: false });
Expand Down Expand Up @@ -785,11 +782,9 @@ module.exports = {
};

//Debug messages for troubleshooting host and path issuse - MB
if (cfg.degug) {
console.log("lmsLaunchDataStateParams.toString() is ", lmsLaunchDataStateParams.toString());
console.log("lmsLaunchDataStateParams is ", lmsLaunchDataStateParams);
console.log("lmsLaunchDataPayload is ", lmsLaunchDataPayload);
}

if (courseAu.metadata.entitlementKey) {
lmsLaunchDataPayload.entitlementKey = {
Expand Down Expand Up @@ -817,11 +812,9 @@ module.exports = {
}
);
//Debug messages for troubleshooting host and path issuse - MB
if (cfg.degug) {
console.log("lmsLaunchDataPayload is ", lmsLaunchDataPayload);
console.log("activities/state?${lmsLaunchDataStateParams.toString()} is ", `activities/state?${lmsLaunchDataStateParams.toString()}`);
console.log("lmsLaunchDataResponse is ", lmsLaunchDataResponse);
}

lmsLaunchDataResponseBody = await Wreck.read(lmsLaunchDataResponse, { json: true });

Expand Down

0 comments on commit 57b2a18

Please sign in to comment.