debugging pm2

This commit is contained in:
sneakers-the-rat 2023-08-08 17:50:26 -07:00
parent 46fb01d336
commit ecefc85c32
1 changed files with 3 additions and 0 deletions

View File

@ -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(