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