Skip to content

Commit

Permalink
FR-17841 - remove logger for headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vladFrontegg committed Oct 8, 2024
1 parent ccac73d commit 768e8a3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/nextjs/src/middleware/ProxyRequestCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ const ProxyRequestCallback: ProxyReqCallback<ClientRequest, NextApiRequest> = (p
'cache-control',
].map((header) => proxyReq.removeHeader(header));

logger.debug(`${req.url} | headers to be sent:`, proxyReq.getHeaders());

logger.debug(`${req.url} | check if request has body`);
if (req.method !== 'GET' && req.body) {
logger.debug(`${req.url} | writing request body to proxyReq`);
Expand Down

0 comments on commit 768e8a3

Please sign in to comment.