fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 4eecd5acec - Show all commits

View file

@ -114,9 +114,13 @@ export class GBServer {
}); });
process.on('uncaughtException', (err, p) => { process.on('uncaughtException', (err, p) => {
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`); if (err !== null) {
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`);
} else {
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
}
}); });
process.on('SIGTERM', () => { process.on('SIGTERM', () => {
GBLog.info('SIGTERM signal received.'); GBLog.info('SIGTERM signal received.');
}); });