Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Jun 20, 2024
1 parent b11f10d commit 3fdd408
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/clients/worker/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,16 @@ export class WebhookHandler {
return new Response('OK!', { status: 200 });
};
const f = async (req: Request) => {
console.log(
'got request',
req.method,
req.headers.get('x-hatchet-signature'),
`h: ${!!req.headers.get('x-healthcheck')}`
);
if (req.headers.get('x-healthcheck')) {
console.log('doing healthcheck');
const resp = await this.getHealthcheckResponse();
console.log('healthcheck response:', resp);
return new Response(JSON.stringify(resp), { status: 200 });
}
await this.handle(await req.text(), secret, req.headers.get('x-hatchet-signature'));
Expand Down

0 comments on commit 3fdd408

Please sign in to comment.