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

lxd: Log error on resultErrListAppend #14514

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

hamistao
Copy link
Contributor

I noticed this err parameter was unused. So I had this idea of, instead of removing it, logging these erros, as the errors used with that function are currently not being disclosed to the user in any way. This way it is clear why one was not able to get info on that particular instance when looking in the logs. If this logging is not desirable, I will update the PR to just remove the unused parameter.

@hamistao hamistao marked this pull request as ready for review November 25, 2024 13:28
Copy link
Contributor

@MggMuggins MggMuggins left a comment

Choose a reason for hiding this comment

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

Good idea. (For future, not now) I wonder if this could be refactored to use the cluster notifier instead.

lxd/instances_get.go Outdated Show resolved Hide resolved
@hamistao hamistao force-pushed the log_instance_get_error branch from a0650b2 to 25cfc02 Compare November 25, 2024 15:51
MggMuggins
MggMuggins previously approved these changes Nov 25, 2024
Copy link
Contributor

@MggMuggins MggMuggins left a comment

Choose a reason for hiding this comment

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

LGTM!

@tomponline
Copy link
Member

Good idea. (For future, not now) I wonder if this could be refactored to use the cluster notifier instead.

yeah probably.

lxd/instances_get.go Outdated Show resolved Hide resolved
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
@tomponline tomponline merged commit 14d8d8b into canonical:main Nov 27, 2024
26 checks passed
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.

3 participants