Skip to content

Commit

Permalink
fix: revert logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Aug 23, 2024
1 parent 387cbd2 commit 0039d21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/build/framework/awsLambda/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const utils_2 = require("../utils");
const constants_1 = require("../constants");
const supertokens_1 = __importDefault(require("../../supertokens"));
const querystring_1 = require("querystring");
const logger_1 = require("../../logger");
class AWSRequest extends request_1.BaseRequest {
constructor(event) {
super();
Expand Down Expand Up @@ -79,7 +78,6 @@ class AWSRequest extends request_1.BaseRequest {
let path = this.event.path;
let queryParams = this.event.queryStringParameters;
if (path === undefined) {
logger_1.logDebugMessage("AWS_LAMBDA_EVENT: " + JSON.stringify(this.event));
path = this.event.requestContext.http.path;
let stage = this.event.requestContext.stage;
if (stage !== undefined && path.startsWith(`/${stage}`)) {
Expand All @@ -95,7 +93,6 @@ class AWSRequest extends request_1.BaseRequest {
return path;
};
this.original = event;
logger_1.logDebugMessage("AWS_REQUEST: " + JSON.stringify(event));
this.event = event;
}
}
Expand Down
3 changes: 0 additions & 3 deletions lib/ts/framework/awsLambda/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ import { SessionContainerInterface } from "../../recipe/session/types";
import SuperTokens from "../../supertokens";
import { Framework } from "../types";
import { parse } from "querystring";
import { logDebugMessage } from "../../logger";

export class AWSRequest extends BaseRequest {
private event: APIGatewayProxyEventV2 | APIGatewayProxyEvent;

constructor(event: APIGatewayProxyEventV2 | APIGatewayProxyEvent) {
super();
this.original = event;
logDebugMessage("AWS_REQUEST: " + JSON.stringify(event));
this.event = event;
}

Expand Down Expand Up @@ -111,7 +109,6 @@ export class AWSRequest extends BaseRequest {
let path = (this.event as APIGatewayProxyEvent).path;
let queryParams = (this.event as APIGatewayProxyEvent).queryStringParameters as { [key: string]: string };
if (path === undefined) {
logDebugMessage("AWS_LAMBDA_EVENT: " + JSON.stringify(this.event));
path = (this.event as APIGatewayProxyEventV2).requestContext.http.path;
let stage = (this.event as APIGatewayProxyEventV2).requestContext.stage;
if (stage !== undefined && path.startsWith(`/${stage}`)) {
Expand Down

0 comments on commit 0039d21

Please sign in to comment.