v2c-any 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,6 @@ async function main() {
|
|
|
28
28
|
break;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
await service.start();
|
|
32
31
|
const shutdown = async () => {
|
|
33
32
|
try {
|
|
34
33
|
logger.info('Shutting down...');
|
|
@@ -43,13 +42,14 @@ async function main() {
|
|
|
43
42
|
process.exit(0);
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
|
-
logger.info('Application started successfully');
|
|
47
45
|
process.once('SIGINT', () => {
|
|
48
46
|
shutdown().catch((err) => logger.error(err, 'Error during shutdown'));
|
|
49
47
|
});
|
|
50
48
|
process.once('SIGTERM', () => {
|
|
51
49
|
shutdown().catch((err) => logger.error(err, 'Error during shutdown'));
|
|
52
50
|
});
|
|
51
|
+
await service.start();
|
|
52
|
+
logger.info('Application started successfully');
|
|
53
53
|
}
|
|
54
54
|
main().catch((err) => {
|
|
55
55
|
logger.error(err, 'Fatal error occurred');
|