Skip to content

Commit b73cb73

Browse files
committed
ClientInfoLoggerConfigurationExtensions WithRequestHeader fix
1 parent 0fd9ad4 commit b73cb73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Serilog.Enrichers.ClientInfo/Extensions/ClientInfoLoggerConfigurationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ public static LoggerConfiguration WithRequestHeader(this LoggerEnrichmentConfigu
9191
throw new ArgumentNullException(nameof(headerName));
9292
}
9393

94-
return enrichmentConfiguration.With(new ClientHeaderEnricher(propertyName, headerName));
94+
return enrichmentConfiguration.With(new ClientHeaderEnricher(headerName, propertyName));
9595
}
96-
}
96+
}

test/Serilog.Enrichers.ClientInfo.Tests/ClientHeaderEnricherTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ public void WithRequestHeader_ThenLoggerIsCalled_ShouldNotThrowException()
141141
// Assert
142142
Assert.Null(exception);
143143
}
144-
}
144+
}

0 commit comments

Comments
 (0)