From ecefc85c329c55d29d4b6cff4760d398abedd786 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Tue, 8 Aug 2023 17:50:26 -0700 Subject: [PATCH] debugging pm2 --- server/src/matterbridge/process.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/matterbridge/process.ts b/server/src/matterbridge/process.ts index be827f8..ec34632 100644 --- a/server/src/matterbridge/process.ts +++ b/server/src/matterbridge/process.ts @@ -71,6 +71,9 @@ class MatterbridgeManager { await writeGroupConfig(group_name, group_filename); pm2.connect(async(err:any) => { + if (err){ + logger.error('Error connecting to pm2: %s', err) + } if (!this.process_list.includes(group_name_slug)) { logger.info('Spawning new matterbridge process: %s', group_name_slug) await pm2.start(