|
|
|
@ -41,7 +41,7 @@ console.log("Importing this project modules");
|
|
|
|
|
debug("Importing Monitor");
|
|
|
|
|
const Monitor = require("./model/monitor");
|
|
|
|
|
debug("Importing Settings");
|
|
|
|
|
const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, FBSD } = require("./util-server");
|
|
|
|
|
const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, FBSD, errorLog } = require("./util-server");
|
|
|
|
|
|
|
|
|
|
debug("Importing Notification");
|
|
|
|
|
const { Notification } = require("./notification");
|
|
|
|
@ -1529,5 +1529,6 @@ gracefulShutdown(server, {
|
|
|
|
|
// Catch unexpected errors here
|
|
|
|
|
process.addListener("unhandledRejection", (error, promise) => {
|
|
|
|
|
console.trace(error);
|
|
|
|
|
errorLog(error, false);
|
|
|
|
|
console.error("If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues");
|
|
|
|
|
});
|
|
|
|
|