Skip to content

fix: command "pm2 reloadLogs" does not respect silent flags when used in daemon mode (like when executing with Node.js child_process.exec) #5995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

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