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
PopCorn: add logging #16848
PopCorn: add logging #16848
Conversation
I'd rather that PopCorn does not print the "Retrying ping" message, because it has that functionality built in already. |
Should I change it to redirect popcorns stdout/stderr to /dev/null instead? Or remove the message from popcorn itself? |
My opinion: Service supervisors should not be (ab)used to fix broken daemons and their inability to handle unmet prerequisites properly (I'm looking at systemd's service dependencies for example, which people like to use to ensure other functionality – like network etc – is available before a service starts, instead of properly checking prereqs in their own code) |
A log service should be added which writes the output to a file rather than to the default, which is tty1 for all runit managed services.. |
Like a Or is something like For now I prefix the commit message with [NOMERGE] while I dig deeper into this, I hope that's the correct way of doing it (I'm fairly newish to this). edit: |
Something like:
And maybe Edit: this will log the messages by default to syslog with the flexibility of being able to use |
PR updated. The new dependency util-linux provides vlogger. |
|
Fixed :) |
@@ -0,0 +1 @@ | |||
/usr/bin/vlogger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this have a #! and an exec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is a symlink to /usr/bin/vlogger.
This prevents PopCorn from printing warnings to tty1 because of a (not yet) available network connection. [skip ci]
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.