fix(app): system crash to discord and log now properly happen at a crash
This commit is contained in:
@@ -119,6 +119,7 @@ const main = async () => {
|
|||||||
if (!process.env.WEBHOOK_URL) {
|
if (!process.env.WEBHOOK_URL) {
|
||||||
// await sendEmail(emailData);
|
// await sendEmail(emailData);
|
||||||
} else {
|
} else {
|
||||||
|
log.fatal({ stack: err.stack }, err.message);
|
||||||
await sendNotify({
|
await sendNotify({
|
||||||
module: "system",
|
module: "system",
|
||||||
subModule: "fatalCrash",
|
subModule: "fatalCrash",
|
||||||
|
|||||||
Reference in New Issue
Block a user