Skip to content

Conversation

ninja-quokka
Copy link
Collaborator

Does this PR introduce a user-facing change?

When starting the Podman machine with `--log-level=debug` the underlying call to vfkit will also inherit the debug log level 

Move code to only call `logrus.IsLevelEnabled` once
Move the `endpointArgs` append directly under it's definition

Signed-off-by: Lewis Roy <[email protected]>
@ninja-quokka ninja-quokka added the No New Tests Allow PR to proceed without adding regression tests label Aug 25, 2025
Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

/approve

Copy link
Contributor

openshift-ci bot commented Aug 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Honny1, ninja-quokka
Once this PR has been reviewed and has the lgtm label, please assign lsm5 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

cmd.Args = append(cmd.Args, debugDevArgs...)
cmd.Args = append(cmd.Args, "--gui") // add command line switch to pop the gui open

cmd.Args = append(cmd.Args, "--log-level", "debug") // Pass through debug logging if enabled
Copy link
Member

@jakecorrenti jakecorrenti Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break krunkit. It doesn't have a --log-level option, rather it has --krun-log-level. Krunkit also doesn't accept a string input, it accepts integer values, where --krun-log-level=4 would set the log level to debug.

If you want to do this for only vfkit you'll have to check the provider before you adjust the cmdline.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps you could create a provider specific call GetDebugDevices that calls GetDebugDevicesCMDArgs or some such. And then the provider specific call could add the debug information itself. Then this will work for both krun and vfkit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah great, thanks guys. I incorrectly assumed the cli args were the same between krunkit and vfkit! I'll rework this patch.

@ninja-quokka ninja-quokka marked this pull request as draft August 26, 2025 04:17
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. machine No New Tests Allow PR to proceed without adding regression tests release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants