mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
write uncaught exception to console
This commit is contained in:
@@ -27,6 +27,10 @@ let mainModule;
|
|||||||
// let getLogger;
|
// let getLogger;
|
||||||
// let loadLogsContent;
|
// let loadLogsContent;
|
||||||
|
|
||||||
|
process.on('uncaughtException', function (error) {
|
||||||
|
console.error('uncaughtException', error);
|
||||||
|
});
|
||||||
|
|
||||||
const isMac = () => os.platform() == 'darwin';
|
const isMac = () => os.platform() == 'darwin';
|
||||||
|
|
||||||
// unhandled({
|
// unhandled({
|
||||||
|
|||||||
Reference in New Issue
Block a user