Skip to content

fix: Remove unnecessary non-PID 1 log output #19

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: master
Choose a base branch
from
Open

fix: Remove unnecessary non-PID 1 log output #19

wants to merge 1 commit into from

Conversation

psibi
Copy link
Member

@psibi psibi commented Jun 26, 2025

Removed an eprintln! statement that logged when the process was not running as PID 1. Observing the recent health-check logs, I find this redundant, un-necessary and in some cases confusing.

The whole purpose of these logs is to ensure that the Devops engineer is able to confirm that the application is being run as PID 1 and something else is not configured as entry point in the docker container. We already provide logs when it is currently run as PID 1. Right now, when pid1 library relaunch the process - it's is launched as a child process and they log these extra message (eg: pid1-rs: Process not running as Pid 1) which makes it confusing since we see series of logs saying it is running as pid 1 and then sdaying it's not running as pid 1. This PR should hopefully improve the current state.

Removed an `eprintln!` statement that logged when the process was
not running as PID 1. Observing the recent health-check logs, I find
this redundant, un-necessary and in some cases confusing.

The whole purpose of these logs is to ensure that the Devops engineer
is able to confirm that the application is being run as PID 1 and
something else is not configured as entry point in the docker
container. We already provide logs when it is currently run as PID
1. Right now, when we relaunch the process - it's is launched as a
child process and they log these extra message (pid1-rs: Process not
running as Pid 1) which makes all the logs confusing since we see
series of this message.
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