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

Avoid expensive work for CertificateManager logging when not enabled #27956

Merged
1 commit merged into from
Nov 23, 2020

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Nov 18, 2020

A bunch of calls to CertificateManager.Log.SomeEvent are made but with computed arguments that are relatively expensive. These should all be guarded behind IsEnabled checks to only do that work if the logging is likely to happen.

Related to dotnet/runtime#44598

@ghost
Copy link

ghost commented Nov 18, 2020

Hello @davidfowl!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 60 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants