Skip to content

Commit d08484c

Browse files
committed
add logging for index
1 parent e89ab0f commit d08484c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async function start() {
2222
// if role variable is set just run that script
2323
import('./svc/' + process.env.ROLE + '.ts');
2424
} else if (process.env.GROUP) {
25+
console.log('running group %s', process.env.GROUP);
2526
// or run the group with pm2
2627
cp.execSync('pm2 start ecosystem.config.js');
2728
setInterval(
@@ -31,7 +32,7 @@ async function start() {
3132
24 * 60 * 60 * 1000,
3233
);
3334
} else {
34-
// Block indefinitely (keep process alive for Docker)
35+
console.log('blocking process indefinitely for Docker');
3536
process.stdin.resume();
3637
}
3738
}

0 commit comments

Comments
 (0)