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

Changed info logs to debug to reduce enormous amount of traces spewed by the middleware for each request #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CorrelationId/CorrelationIdMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ private static class Log
"Correlation ID header is enforced but no Correlation ID was not found in the request headers");

private static readonly Action<ILogger, string, Exception> _foundCorrelationIdHeader = LoggerMessage.Define<string>(
LogLevel.Information,
LogLevel.Debug,
EventIds.FoundCorrelationIdHeader,
"Correlation ID {CorrelationId} was found in the request headers");

private static readonly Action<ILogger, Exception> _missingCorrelationIdHeader = LoggerMessage.Define(
LogLevel.Information,
LogLevel.Debug,
EventIds.MissingCorrelationIdHeader,
"No correlation ID was found in the request headers");

Expand Down