Skip to content

chore: discard logs by default #138

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

Merged
merged 1 commit into from
May 27, 2025
Merged

chore: discard logs by default #138

merged 1 commit into from
May 27, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented May 27, 2025

Logs should be instanced. The caller can define where the logs go.

Updated trivy to include this merge: aquasecurity/trivy#8738

@Emyrk Emyrk requested a review from jaaydenh May 27, 2025 17:12
Comment on lines +99 to +102
logger := input.Logger
if logger == nil { // Default to discarding logs
logger = slog.New(slog.DiscardHandler)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the change. We default to discarding logs

@Emyrk Emyrk merged commit ab173d3 into main May 27, 2025
3 checks passed
@Emyrk Emyrk deleted the stevenmasley/no_logs branch May 27, 2025 17:25
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.

2 participants