diff --git a/src/middleware/jwt-auth.js b/src/middleware/jwt-auth.js index a34c425..e45333b 100644 --- a/src/middleware/jwt-auth.js +++ b/src/middleware/jwt-auth.js @@ -12,7 +12,7 @@ // req.locals.jwtToken property. const getTokenFromHeaders = (req, res, next) => { try { - console.log('req.headers: ', req.headers) + // console.log('req.headers: ', req.headers) // Only executes if the authorization header exists. if (req.headers.authorization) { @@ -23,7 +23,7 @@ const getTokenFromHeaders = (req, res, next) => { if (authStr.split(' ')[0] === 'Token') { const token = authStr.split(' ')[1] - console.log(`JWT found: ${token}`) + // console.log(`JWT found: ${token}`) // Create the req.locals property if it does not yet exist. if (!req.locals) { diff --git a/src/middleware/route-ratelimit.js b/src/middleware/route-ratelimit.js index 24cff0f..c90e03a 100644 --- a/src/middleware/route-ratelimit.js +++ b/src/middleware/route-ratelimit.js @@ -270,9 +270,9 @@ class RateLimits { res.locals.rateLimitTriggered = true // console.log('res.locals: ', res.locals) - console.log( - `rate limit debug info: ${JSON.stringify(debugInfo, null, 2)}` - ) + // console.log( + // `rate limit debug info: ${JSON.stringify(debugInfo, null, 2)}` + // ) // Rate limited was triggered res.status(429) // https://github.com/Bitcoin-com/rest.bitcoin.com/issues/330