Skip to content

Commit

Permalink
chore: log node emitted warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed Jan 31, 2024
1 parent 2d6ec64 commit 45bda02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export default async (argv?: Array<string>) => {
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'), {
Expand Down

0 comments on commit 45bda02

Please sign in to comment.