Skip to content

TCA-595 Remove logging #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions api-server/src/server/boot/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ export function isValidChallengeCompletion(req, res, next) {
body: { id, challengeType, solution }
} = req;

console.debug('Checking validity', id, challengeType, solution);

// ToDO: Validate other things (challengeFiles, etc)
const isValidChallengeCompletionErrorMsg = {
type: 'error',
Expand All @@ -276,13 +274,10 @@ export function isValidChallengeCompletion(req, res, next) {
return res.status(403).json(isValidChallengeCompletionErrorMsg);
}

console.debug('Challenge is valid.');
return next();
}

export function modernChallengeCompleted(req, res, next) {
console.debug('starting modernChallengeCompleted');

const user = req.user;
return user
.getCompletedChallenges$()
Expand Down Expand Up @@ -327,7 +322,6 @@ export function modernChallengeCompleted(req, res, next) {
})
);
return Observable.fromPromise(updatePromise).map(() => {
console.debug('returning from modern completion');
return res.json({
points,
alreadyCompleted,
Expand Down
3 changes: 0 additions & 3 deletions client/src/templates/Challenges/redux/completion-epic.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ function postChallenge(update, username) {
}

function submitModern(type, state) {
console.debug('submitting modern');
console.trace();

const challengeType = state.challenge.challengeMeta.challengeType;
const tests = challengeTestsSelector(state);
if (
Expand Down