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

perf: remove extra dict wrapper #2396

Merged
merged 2 commits into from
Oct 3, 2023
Merged

perf: remove extra dict wrapper #2396

merged 2 commits into from
Oct 3, 2023

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Oct 2, 2023

Reduces matrix size and removes unnecessary indirection

Reduces matrix size and removes unnecessary indirection
Reduces matrix size and removes unnecessary indirection
@@ -1450,7 +1452,13 @@ func (r *RestPerf) updateQosLabels(qos gjson.Result, instance *matrix.Instance,
r.Logger.Trace().Str("label", label).Str("key", key).Msg("Missing label")
}
}
r.Logger.Debug().Str("query", r.Prop.Query).Str("key", key).Str("qos labels", instance.GetLabels().String()).Send()
if r.Logger.GetLevel() == zerolog.DebugLevel {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you clarify the need for this code change? Should we be using if-else like this for debug logging?

Copy link
Contributor

@Hardikl Hardikl left a comment

Choose a reason for hiding this comment

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

Other dict changes are fine but confuse about logging changes.

@cgrinds cgrinds merged commit 231a02c into main Oct 3, 2023
9 checks passed
@cgrinds cgrinds deleted the cbg-more-perf branch October 3, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants