Skip to content

Commit

Permalink
improve(webhooks): add some improved logging when webhooks fail, also… (
Browse files Browse the repository at this point in the history
#119)

Signed-off-by: david <david@umaproject.org>
  • Loading branch information
daywiss authored Nov 27, 2024
1 parent f0ca94a commit ae72754
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/webhooks/src/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class BaseNotifier {
message: `Error calling webhook`,
notificationPath: "across-indexer-error",
error,
payload,
});
});
};
Expand Down
4 changes: 4 additions & 0 deletions packages/webhooks/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export function WebhookRouter(deps: Dependencies): express.Router {
router.use(express.json());
router.use(bearerToken());

router.get("/", (_req, res) => {
res.status(200).send("Webhook service is running");
});

router.post(
"/webhook",
async (
Expand Down

0 comments on commit ae72754

Please sign in to comment.