mirror of
https://github.com/spacebarchat/server.git
synced 2024-09-20 01:31:34 +02:00
Add sentry close to sigterm handler
This commit is contained in:
parent
30ec479e25
commit
efa4411f18
@ -22,6 +22,7 @@ const gateway = new Gateway.Server({ server, port, production });
|
|||||||
process.on("SIGTERM", async () => {
|
process.on("SIGTERM", async () => {
|
||||||
console.log("Shutting down due to SIGTERM");
|
console.log("Shutting down due to SIGTERM");
|
||||||
server.close();
|
server.close();
|
||||||
|
Sentry.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
@ -99,4 +99,8 @@ export const Sentry = {
|
|||||||
res.end(res.sentry + "\n");
|
res.end(res.sentry + "\n");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
close: () => {
|
||||||
|
SentryNode.close();
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user