-
Notifications
You must be signed in to change notification settings - Fork 309
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
Allow passing an ID to journald log driver #1541
Conversation
We were not able to find or create Copr project
Unless the HTTP status code above is >= 500, please check your configuration for:
|
77a51fc
to
6a5cdab
Compare
/approve |
Ephemeral COPR build failed. @containers/packit-build please check. |
@@ -236,7 +236,7 @@ libcrun_init_logging (crun_output_handler *new_output_handler, void **new_output | |||
|
|||
case LOG_TYPE_JOURNALD: | |||
*new_output_handler = log_write_to_journald; | |||
*new_output_handler_arg = NULL; | |||
*new_output_handler_arg = (void *) id; |
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.
An idea...
Looking at the callback signature:
void log_write_to_journald (int errno_, const char *msg, int verbosity, void *arg arg_unused)
We could rename the arg_unused
to something else now, especially since it will be used.
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.
Makes sense, I renamed it to id
.
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.
Ah I had to revert since it's still technically unused when building without systemd support: https://github.com/containers/crun/actions/runs/10678078263/job/29594436938?pr=1541
podman system tests failed. @containers/packit-build please check. |
LGTM, what do you think about the comment from @kwilczynski? |
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.
LGTM
6a5cdab
to
8d4208d
Compare
Ephemeral COPR build failed. @containers/packit-build please check. |
The ID has been dropped before this patch, but we can use it to refer a container ID or anything else identifiable. Signed-off-by: Sascha Grunert <[email protected]>
8d4208d
to
544fe3f
Compare
podman system tests failed. @containers/packit-build please check. |
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.
LGTM
The ID has been dropped before this patch, but we can use it to refer a container ID or anything else identifiable.
Will be used by conmon-rs in https://github.com/containers/conmon-rs/pull/2401/files#diff-5d1350be7d73e8dfd3f43f70d9d71838500a7c04b2ee5ee19f1c4521f9df7d12R395
Refers to #1525