From 8a31d667427dbdadcefeb73a564bef6137464bc5 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:31:36 +1100 Subject: Add sentry close to sigterm handler --- src/bundle/Server.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bundle/Server.ts') diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts index abd05e1f..83c9c16a 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts @@ -22,6 +22,7 @@ const gateway = new Gateway.Server({ server, port, production }); process.on("SIGTERM", async () => { console.log("Shutting down due to SIGTERM"); server.close(); + Sentry.close(); }); async function main() { -- cgit 1.5.1