diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-10 18:31:36 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-10 18:31:36 +1100 |
commit | efa4411f188e7245c9a52af361c590a62032cb83 (patch) | |
tree | ca591f17a2ccf5fcef65071987c9a8155694869c /src/bundle/Server.ts | |
parent | Add back include_url param to reg tokens (diff) | |
download | server-efa4411f188e7245c9a52af361c590a62032cb83.tar.xz |
Add sentry close to sigterm handler
Diffstat (limited to 'src/bundle/Server.ts')
-rw-r--r-- | src/bundle/Server.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |