From df76d1de6586da3364a3b13767a8609348ec6f94 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 3 Dec 2023 11:26:44 -0300 Subject: [PATCH] fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima --- src/app.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/app.ts b/src/app.ts index f092a4cc..ecdd763c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -105,25 +105,6 @@ export class GBServer { server.use(bodyParser.json({ limit: '100mb' })); server.use(bodyParser.urlencoded({ limit: '100mb', extended: true })); - // Setups global error handlers. - - // process.on('unhandledRejection', (err, p) => { - // err = err['e'] ? err['e'] : err; - // GBLog.error(`UNHANDLED_REJECTION(promises): ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''} ${err['cause'] ? '\n' + err['cause']?.message : ''}`); - // if (err['response']?.obj?.httpStatusCode === 404) { - // GBLog.warn(`Check reverse proxy: ${process.env.BOT_URL} as it seems to be invalid.`); - // } - // }); - - process.on('uncaughtException', (err, p) => { - if (err !== null) { - err = err['e'] ? err['e'] : err; - GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`); - } else { - GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)'); - } - }); - process.on('SIGTERM', () => { GBLog.info('SIGTERM signal received.'); });