debugging pm2
This commit is contained in:
parent
46fb01d336
commit
ecefc85c32
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ class MatterbridgeManager {
|
||||||
await writeGroupConfig(group_name, group_filename);
|
await writeGroupConfig(group_name, group_filename);
|
||||||
|
|
||||||
pm2.connect(async(err:any) => {
|
pm2.connect(async(err:any) => {
|
||||||
|
if (err){
|
||||||
|
logger.error('Error connecting to pm2: %s', err)
|
||||||
|
}
|
||||||
if (!this.process_list.includes(group_name_slug)) {
|
if (!this.process_list.includes(group_name_slug)) {
|
||||||
logger.info('Spawning new matterbridge process: %s', group_name_slug)
|
logger.info('Spawning new matterbridge process: %s', group_name_slug)
|
||||||
await pm2.start(
|
await pm2.start(
|
||||||
|
|
Loading…
Reference in a new issue