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) {
|
||||
// await sendEmail(emailData);
|
||||
} else {
|
||||
log.fatal({ stack: err.stack }, err.message);
|
||||
await sendNotify({
|
||||
module: "system",
|
||||
subModule: "fatalCrash",
|
||||
|
||||
Reference in New Issue
Block a user