-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add context logger utilities for enhanced logging support #9168
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
Conversation
Signed-off-by: Priyansh Choudhary <[email protected]>
|
@priyansh17 |
Signed-off-by: Priyansh Choudhary <[email protected]>
Signed-off-by: Priyansh Choudhary <[email protected]>
Signed-off-by: Priyansh Choudhary <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9168 +/- ##
==========================================
- Coverage 59.68% 59.66% -0.02%
==========================================
Files 381 382 +1
Lines 43879 43900 +21
==========================================
+ Hits 26189 26194 +5
- Misses 16145 16161 +16
Partials 1545 1545 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kaovilai
left a comment
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.
This PR introduces duplicate functionality - Velero already uses Kopia's logging.WithLogger/LoggerFromContext in pkg/kopia/kopia_log.go for context-based logging in Kopia integrations. Since all modified backends are under kopialib/ and return Kopia storage implementations, consider reusing Kopia's existing logging utilities rather than creating a parallel implementation in pkg/repository/udmrepo/logging/.
|
@kaovilai |
|
FYI, I have opened a dedicated issue #9176, let's discuss in the issue |
…ckend Signed-off-by: Priyansh Choudhary <[email protected]>
|
Tag: @kaovilai for any review. |
|
@priyansh17 Could you help to cherry-pick this PR to 1.16 branch? |
Sure, will raise another PR. |
|
@Lyndon-Li I don't see changes in this PR #8875 in the release 1.16 https://github.com/vmware-tanzu/velero/blob/release-1.16/pkg/repository/udmrepo/kopialib/backend/gcs.go |
|
@priyansh17 Do you mean to raise a PR to release-1.16 branch so that #9168 make it into release-1.16? |
|
@kaovilai I meant @Lyndon-Li mentioned to add this PR into 1.16 but this is a fix for #8875, if the issue isn't in the release there's no need for the solution to go in. |
Thanks for the confirmation! My mistake, I previous thought the problematic PR is also in 1.16. |
Signed-off-by: Priyansh Choudhary [email protected]
Please add a summary of your change
Fix #9176
Please indicate you've done the following: