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

vex: check if debug logging enabled before appending #1384

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

crozzy
Copy link
Contributor

@crozzy crozzy commented Aug 19, 2024

There are a couple of places that append to a slice with debug information, this patch checks if debug logging is enabled before appending to save unnecessary allocation.

There are a couple of places that append to a slice with debug
information, this patch checks if debug logging is enabled before
appending to save unnecessary allocation.

Signed-off-by: crozzy <[email protected]>
@crozzy crozzy requested a review from a team as a code owner August 19, 2024 17:49
@crozzy crozzy requested review from hdonnay and removed request for a team August 19, 2024 17:49
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

LGTM

@crozzy crozzy merged commit 812a7b6 into quay:main Aug 19, 2024
6 checks passed
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 55.35%. Comparing base (a3c7415) to head (a17f362).
Report is 7 commits behind head on main.

Files Patch % Lines
rhel/vex/parser.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1384      +/-   ##
==========================================
+ Coverage   55.25%   55.35%   +0.10%     
==========================================
  Files         278      282       +4     
  Lines       17199    17836     +637     
==========================================
+ Hits         9503     9874     +371     
- Misses       6738     6928     +190     
- Partials      958     1034      +76     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants