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

Don't log console errors when activating lima extension #3852

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

afbjorklund
Copy link
Contributor

@afbjorklund afbjorklund commented Sep 10, 2023

What does this PR do?

Avoid logging errors for the lima extension.

Only check files in use, and use "debug" log.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

Closes #3780

How to test this PR?

When not using the lima extension, log should be empty.

When using template://podman, no "kubernetes.sock" errors.

The lima instance might not be running.
This is not an error, so log it as debug.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Only check socket files for container providers.
Only check config files for kubernetes provider.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
@afbjorklund afbjorklund requested review from benoitf and a team as code owners September 10, 2023 17:45
@afbjorklund afbjorklund requested review from dgolovin and cdrage and removed request for a team September 10, 2023 17:45
@afbjorklund afbjorklund changed the title Lima console Don't log console errors when activating lima extension Sep 10, 2023
Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@benoitf benoitf merged commit a8833b8 into containers:main Sep 13, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.4.0 milestone Sep 13, 2023
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.

Missing lima socket or configuration should not be logged as an error
4 participants