mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 22:16:00 +00:00
Merge branch 'master' of github.com:dbgate/dbgate
This commit is contained in:
@@ -9,11 +9,8 @@ const platformInfo = require('./utility/platformInfo');
|
|||||||
const logger = getLogger('apiIndex');
|
const logger = getLogger('apiIndex');
|
||||||
|
|
||||||
process.on('uncaughtException', err => {
|
process.on('uncaughtException', err => {
|
||||||
logger.fatal(extractErrorLogData(err), 'Uncaught exception');
|
logger.fatal(extractErrorLogData(err), 'Uncaught exception, exiting process');
|
||||||
if (err?.['code'] == 'EPIPE' && platformInfo.isForkedApi) {
|
process.exit(1);
|
||||||
// stop subprocess on EPIPE errors
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (processArgs.startProcess) {
|
if (processArgs.startProcess) {
|
||||||
|
|||||||
Reference in New Issue
Block a user