Skip to content

Commit 95e0377

Browse files
authored
Merge pull request #32 from atesoglu/ClientInfoLoggerConfigurationExtensions-Fix
ClientInfoLoggerConfigurationExtensions WithRequestHeader fix
2 parents 0fd9ad4 + b73cb73 commit 95e0377

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)