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

feat: add the new logger through Zarf wherever it is missing #3265

Merged
merged 5 commits into from
Nov 21, 2024

Conversation

AustinAbro321
Copy link
Contributor

@AustinAbro321 AustinAbro321 commented Nov 21, 2024

Description

Went back through the Zarf codebase and added the new logging commands to places where we may have missed on the first pass through. There are some errors that we will never reach or are very unlikely to reach where we run a message.Debug. In these situations, I just replaced message with the new logger now.

Fixes #2576

Checklist before merging

Signed-off-by: Austin Abro <[email protected]>
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 22fbf63
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/673f78c8cee324000916383e
😎 Deploy Preview https://deploy-preview-3265--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AustinAbro321 AustinAbro321 changed the title slog leftover feat: add the new logger throughout Zarf to where we may have missed it Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 9.89011% with 82 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/package.go 0.00% 27 Missing ⚠️
src/cmd/dev.go 0.00% 14 Missing ⚠️
src/pkg/packager/creator/skeleton.go 0.00% 9 Missing ⚠️
src/internal/packager/helm/chart.go 33.33% 4 Missing ⚠️
src/cmd/internal.go 0.00% 3 Missing ⚠️
src/cmd/common/table.go 0.00% 2 Missing ⚠️
src/internal/packager/helm/zarf.go 0.00% 2 Missing ⚠️
src/pkg/interactive/prompt.go 0.00% 2 Missing ⚠️
src/pkg/packager/interactive.go 0.00% 2 Missing ⚠️
src/pkg/packager/sources/oci.go 0.00% 2 Missing ⚠️
... and 14 more
Files with missing lines Coverage Δ
src/internal/packager/helm/repo.go 25.77% <ø> (ø)
src/pkg/cluster/injector.go 66.56% <100.00%> (+0.20%) ⬆️
src/pkg/layout/split.go 57.14% <100.00%> (ø)
src/pkg/packager/creator/normal.go 6.94% <100.00%> (ø)
src/internal/git/repository.go 16.90% <50.00%> (+0.32%) ⬆️
src/internal/packager/template/template.go 10.89% <0.00%> (ø)
src/pkg/cluster/secrets.go 63.79% <0.00%> (-0.56%) ⬇️
src/pkg/interactive/components.go 0.00% <0.00%> (ø)
src/pkg/layout/package.go 31.32% <0.00%> (ø)
src/pkg/packager/common.go 44.59% <0.00%> (-0.31%) ⬇️
... and 18 more

🚨 Try these New Features:

@AustinAbro321 AustinAbro321 changed the title feat: add the new logger throughout Zarf to where we may have missed it feat: add the new logger through Zarf wherever it is missing Nov 21, 2024
Signed-off-by: Austin Abro <[email protected]>
Signed-off-by: Austin Abro <[email protected]>
Signed-off-by: Austin Abro <[email protected]>
mkcp
mkcp previously approved these changes Nov 21, 2024
Copy link
Contributor

@mkcp mkcp left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -25,6 +25,7 @@ func SelectOptionalComponent(component v1alpha1.ZarfComponent) (bool, error) {
return false, err
}
if component.Description != "" {
// TODO (@austinabro321) once we move interactiveness to CLI level we should replace this with logger.Info
Copy link
Contributor

Choose a reason for hiding this comment

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

++

@AustinAbro321 AustinAbro321 marked this pull request as ready for review November 21, 2024 18:12
@AustinAbro321 AustinAbro321 requested review from a team as code owners November 21, 2024 18:12
Signed-off-by: Austin Abro <[email protected]>
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Nov 21, 2024
Merged via the queue into main with commit d946546 Nov 21, 2024
26 checks passed
@AustinAbro321 AustinAbro321 deleted the slog-leftover branch November 21, 2024 19:04
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.

Refactoring of logging
2 participants