diff --git a/plugin-server/src/main/pluginsServer.ts b/plugin-server/src/main/pluginsServer.ts index 45e6a1c8b07b3..2257a3c2c97fd 100644 --- a/plugin-server/src/main/pluginsServer.ts +++ b/plugin-server/src/main/pluginsServer.ts @@ -183,8 +183,8 @@ export async function startPluginsServer( 27, // REBALANCE_IN_PROGRESS ]) - process.on('unhandledRejection', (error: Error) => { - status.error('🤮', `Unhandled Promise Rejection: ${error.stack}`) + process.on('unhandledRejection', (error: Error | any, promise: Promise) => { + status.error('🤮', `Unhandled Promise Rejection`, { error, promise }) if (error instanceof KafkaJSProtocolError) { kafkaProtocolErrors.inc({