Skip to content

Commit

Permalink
fix: logging for aws lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Aug 23, 2024
1 parent 76b63d1 commit 387cbd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/aws/with-emailpassword/backend/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getBackendConfig = () => {
},
appInfo: {
appName: "SuperTokens Demo",
apiDomain: "https://0ez3j5libc.execute-api.ap-south-1.amazonaws.com",
apiDomain: "https://zcbgp7k8ti.execute-api.ap-south-1.amazonaws.com",
websiteDomain: "http://localhost:3000",
apiBasePath: "/auth",
apiGatewayPath: "/prod",
Expand Down
1 change: 1 addition & 0 deletions lib/build/framework/awsLambda/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class AWSRequest extends request_1.BaseRequest {
return path;
};
this.original = event;
logger_1.logDebugMessage("AWS_REQUEST: " + JSON.stringify(event));
this.event = event;
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/ts/framework/awsLambda/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class AWSRequest extends BaseRequest {
constructor(event: APIGatewayProxyEventV2 | APIGatewayProxyEvent) {
super();
this.original = event;
logDebugMessage("AWS_REQUEST: " + JSON.stringify(event));
this.event = event;
}

Expand Down

0 comments on commit 387cbd2

Please sign in to comment.