mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 06:29:17 -04:00
* Bump pg * Handle uncaughtException * Fix parsing issue of postgres connection and fix the query example
This commit is contained in:
parent
c3e3f27457
commit
1c13a75970
5 changed files with 50 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue