diff --git a/src/index.ts b/src/index.ts index 230727f..1f0634e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,6 +34,10 @@ export default async (argv?: Array) => { process.exit(-1); }); + process.on('warning', (err: Error) => { + logger.warn(`warning: ${err.name}: ${err.message}`); + logger.debug(err.stack); + }); try { StorageManager.init(config.get('storage-url'), {