Skip to content

Commit 44a5984

Browse files
PROD-2033 #comment remove debug log #time 15m
1 parent 776abf8 commit 44a5984

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ jspm_packages/
150150
.env
151151
.env.test
152152
chris.env
153+
dev-freecodecamp.env
153154

154155
# gatsby files
155156
.cache/

Jenkinsfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ pipeline {
100100
mv buildenvvarg deployenvvarg
101101
echo "Fetching Buildvar"
102102
./buildenv.sh -e ${DEPLOY_ENV} -b ${LOGICAL_ENV}-${APPNAME}-buildvar
103-
echo "DEPLOY_ENV" ${DEPLOY_ENV}
104-
echo "LOGICAL_ENV" ${LOGICAL_ENV}
105103
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/${LOGICAL_ENV}-freecodecamp.env ./.env
106104
"""
107105
load 'awsenvconfg'

api-server/src/server/middlewares/request-authorization.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ export default function getRequestAuthorisation({
7373
const { origin } = getRedirectParams(req);
7474
const { path } = req;
7575

76-
console.log('######### multi-line test', 'line 1\nline 2');
77-
console.log('######### jwtSecret length', jwtSecret?.length);
78-
console.log('######### jwtSecret - start', jwtSecret?.substring(0, 50));
79-
console.log(
80-
'######### jwtSecret - end',
81-
jwtSecret?.substring(jwtSecret?.length - 50)
82-
);
8376
if (!isAllowedPath(path)) {
8477
const { accessToken, error, jwt } = getAccessTokenFromRequest(
8578
req,

api-server/src/server/utils/getSetAccessToken.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ export function getAccessTokenFromRequest(req, jwtSecret = _jwtSecret) {
3939
// TOPCODER: the jwt cookie is in the cookies var instead
4040
// of the cookie string
4141
req.cookies?.[jwtCookieNS];
42-
console.log('######### maybeToken', maybeToken);
4342
if (!maybeToken) {
44-
console.log('######### NO maybeToken req', req);
4543
return {
4644
accessToken: null,
4745
error: errorTypes.noTokenFound
@@ -52,7 +50,6 @@ export function getAccessTokenFromRequest(req, jwtSecret = _jwtSecret) {
5250
try {
5351
token = jwt.verify(maybeToken, jwtSecret);
5452
} catch (err) {
55-
console.log('######### verification error', err);
5653
return {
5754
accessToken: null,
5855
error: errorTypes.invalidToken

0 commit comments

Comments
 (0)