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

Minor fixes in makefiles #1000

Merged
merged 4 commits into from
Jun 15, 2024
Merged

Minor fixes in makefiles #1000

merged 4 commits into from
Jun 15, 2024

Conversation

v0lkan
Copy link
Contributor

@v0lkan v0lkan commented Jun 15, 2024

Minor fixes in makefiles

When the API requested a non-existent secret, the error message
we got was too alarming and confusing.

This commit softens that message and provides additional context.

Signed-off-by: Volkan Ozcelik <me@volkan.io>
Signed-off-by: Volkan Ozcelik <me@volkan.io>
Signed-off-by: Volkan Ozcelik <me@volkan.io>
Signed-off-by: Volkan Ozcelik <me@volkan.io>
@v0lkan v0lkan self-assigned this Jun 15, 2024
@v0lkan v0lkan requested a review from BulldromeQ as a code owner June 15, 2024 13:07
@@ -93,7 +93,8 @@ func Fetch(

secret, err := collection.ReadSecret(cid, workloadId)
if err != nil {
log.WarnLn(&cid, "Fetch: Problem reading secret", err.Error())
log.WarnLn(&cid, "Fetch: Attemted to read secret from disk.")
log.TraceLn(&cid, "Likely expected error. No need to panic:", err.Error())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This message looked like a severe error and was confusing the developer when debugging the system behavior.

Renamed it to make it look intentionally less alarming.

@v0lkan v0lkan merged commit 35d14de into main Jun 15, 2024
@v0lkan v0lkan deleted the ovolkan/warn branch June 15, 2024 13:08
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.

1 participant