Skip to content

Commit

Permalink
2 small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ggnaegi committed Nov 5, 2023
1 parent db678ff commit 79f79ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ocelot/Headers/Middleware/ClaimsToHeadersMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task Invoke(HttpContext httpContext)

if (response.IsError)
{
Logger.LogWarning( "Error setting headers on context, setting pipeline error");
Logger.LogWarning("Error setting headers on context, setting pipeline error");

httpContext.Items.UpsertErrors(response.Errors);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Ocelot/Logging/OcelotLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void WriteLog(LogLevel logLevel, Func<string> messageFactory, string mes

if (messageFactory != null)
{
message = messageFactory?.Invoke() ?? string.Empty;
message = messageFactory.Invoke() ?? string.Empty;
}

_logger.Log(logLevel, default, $"requestId: {requestId}, previousRequestId: {previousRequestId}, message: '{message}'", exception, _func);
Expand Down

0 comments on commit 79f79ac

Please sign in to comment.