Skip to content
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

Why everything as "error" in verbose mode? #279

Open
christianinsert opened this issue Jun 16, 2022 · 5 comments
Open

Why everything as "error" in verbose mode? #279

christianinsert opened this issue Jun 16, 2022 · 5 comments

Comments

@christianinsert
Copy link

I am running dumb-init in Google Kubernetes Engine in verbose mode. It seems that everything dumb-init puts out is interpreted as error even seemingly harmless messages like Child spawned with PID ... Should this be an error? Is there anything I can or need to do?

@asottile
Copy link
Contributor

in think you're confusing "stderr" with errors -- output is sent to stderr to not interfere with program output

@christianinsert
Copy link
Author

Well, it's actually not me "falling victim" to that confusion but Google Kubernetes Engine. Everything which dumb-init, puts out is marked as "error" in the GKE logs (because of stderr). And that's a little bit inconvenient to be honest.

@asottile
Copy link
Contributor

I still think you're confused -- GKE produces a separate log for the stdout and the stderr -- they're not "errors"

@christianinsert
Copy link
Author

Thanks for your answer!
I'm not a GKE expert to be honest, but this is what I see in my logs:

image

So, dumb-init logs are marked with severity "Error". And I cannot see a separate log for stderr.

@christianinsert christianinsert changed the title Why everyting as "error" in verbose mode? Why everything as "error" in verbose mode? Jun 16, 2022
@asottile
Copy link
Contributor

ah you've probably configured GKE to treat stderr as [error] level logs

I can't really help you for free on fixing your kubernetes configuration but this is not a dumb-init problem

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

No branches or pull requests

2 participants