Skip to content

Commit

Permalink
chore: more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich committed Jul 13, 2024
1 parent bedd3b1 commit ab90181
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ export async function index(context) {
const request = toRequest(context);

if (debug) {
context.log(
'Starting request',
context?.req?.method,
context?.req?.headers?.['x-ms-original-url']
);
context.log(`Original request: ${JSON.stringify(context)}`);
context.log(`Request: ${JSON.stringify(request)}`);
}

Expand Down

0 comments on commit ab90181

Please sign in to comment.