mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-06 23:47:10 +08:00
* Bump pg * Handle uncaughtException * Fix parsing issue of postgres connection and fix the query example
This commit is contained in:
@@ -1887,8 +1887,10 @@ gracefulShutdown(server.httpServer, {
|
||||
});
|
||||
|
||||
// Catch unexpected errors here
|
||||
process.addListener("unhandledRejection", (error, promise) => {
|
||||
let unexpectedErrorHandler = (error, promise) => {
|
||||
console.trace(error);
|
||||
UptimeKumaServer.errorLog(error, false);
|
||||
console.error("If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues");
|
||||
});
|
||||
};
|
||||
process.addListener("unhandledRejection", unexpectedErrorHandler);
|
||||
process.addListener("uncaughtException", unexpectedErrorHandler);
|
||||
|
Reference in New Issue
Block a user