mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
/* eslint-disable no-console */
|
|
import logger from './Logger';
|
|
process.on('exit', () => {
|
|
logger.info('Server Shutting Shutdown');
|
|
});
|
|
|
|
process.on('unhandledRejection', (err: $TSFixMe) => {
|
|
logger.error('Unhandled rejection in server process occurred');
|
|
logger.error(err);
|
|
});
|
|
|
|
process.on('uncaughtException', (err: $TSFixMe) => {
|
|
logger.error('Uncaught exception in server process occurred');
|
|
logger.error(err);
|
|
});
|