Skip to content

Conversation

t-poirier
Copy link

When programmatically executing "pm2 reloadLogs" like with child_process.exec, the flags -s and --silent are not respected because the command is passed through pm2-axon-rpc. The only way I found to obtain the desired behavior is to introduce a dedicated command "pm2 reloadLogsSilently" that does the job.

This is useful to avoid the pollution of the console messages when rotating the logs.

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #5927
License MIT
Doc PR https://github.com/pm2-hive/pm2-hive.github.io/pulls

… in daemon mode (like when executing with Node.js child_process.exec)
@CLAassistant
Copy link

CLAassistant commented Jun 1, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants