Skip to content

Commit ae72754

Browse files
authored
improve(webhooks): add some improved logging when webhooks fail, also… (#119)
Signed-off-by: david <[email protected]>
1 parent f0ca94a commit ae72754

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/webhooks/src/notifier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class BaseNotifier {
2121
message: `Error calling webhook`,
2222
notificationPath: "across-indexer-error",
2323
error,
24+
payload,
2425
});
2526
});
2627
};

packages/webhooks/src/router.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export function WebhookRouter(deps: Dependencies): express.Router {
2424
router.use(express.json());
2525
router.use(bearerToken());
2626

27+
router.get("/", (_req, res) => {
28+
res.status(200).send("Webhook service is running");
29+
});
30+
2731
router.post(
2832
"/webhook",
2933
async (

0 commit comments

Comments
 (0)