Skip to content

Commit

Permalink
Log the whole event and qp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Feb 6, 2025
1 parent 369c475 commit 91e6fb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ export class ApiService {
try {
await this.initialize();

console.log(event);

const method = event.httpMethod.toUpperCase();
const queryParams = event.queryStringParameters || {};
const body = event.body ? JSON.parse(event.body) : {};

let data;

console.log(`Sending ${method} request to ${event.path}`);
console.log(`Query Params: ${queryParams}`);

switch (method) {
case "GET":
Expand Down

0 comments on commit 91e6fb4

Please sign in to comment.