fix(all): Create bot working again.
This commit is contained in:
parent
a7745985ec
commit
4eecd5acec
1 changed files with 6 additions and 2 deletions
|
@ -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.');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue