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

Logging improvements for Amazon.Lambda.AspNetCoreServer #1099

Merged
merged 3 commits into from
Mar 12, 2022
Merged

Logging improvements for Amazon.Lambda.AspNetCoreServer #1099

merged 3 commits into from
Mar 12, 2022

Conversation

martincostello
Copy link
Contributor

Description of changes:

  • Only format the string for the log message if debug level is enabled.
  • Only cast features to IHttpRequestFeature once.
  • Use the LogError() overloads that take an Exception as the first parameter so the full details of the exception can be accessed by loggers.
  • Make fields readonly to resolve IDE suggestion.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Only format the string for the log message if debug level is enabled.
Only cast features to IHttpRequestFeature once.
Use the LogError() overloads that take an Exception as the first parameter so the full details of the exception can be accessed by loggers.
Make fields readonly to resolve IDE suggestion.
@normj normj changed the base branch from master to dev March 12, 2022 02:13
@normj normj merged commit 5cef311 into aws:dev Mar 12, 2022
@martincostello martincostello deleted the Logging-Perf branch March 12, 2022 08: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