From eda8f78fa5084c3247ad10b051610b3c51a13d24 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Wed, 5 Apr 2023 15:49:11 -0700 Subject: [PATCH] fix(generators): Properly log unhandled rejection (#3149) --- packages/generators/src/app/templates/index.tpl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/generators/src/app/templates/index.tpl.ts b/packages/generators/src/app/templates/index.tpl.ts index 72b60e49d7..986bbf68a4 100644 --- a/packages/generators/src/app/templates/index.tpl.ts +++ b/packages/generators/src/app/templates/index.tpl.ts @@ -8,8 +8,8 @@ import { logger } from './logger' const port = app.get('port') const host = app.get('host') -process.on('unhandledRejection', (reason, p) => - logger.error('Unhandled Rejection at: Promise ', p, reason) +process.on('unhandledRejection', (reason) => + logger.error('Unhandled Rejection %O', reason) ) app.listen(port).then(() => {