diff --git a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs index cfde0fa1e..3b40ca44d 100644 --- a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs +++ b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs @@ -55,8 +55,7 @@ public LoggerConfiguration KeyValuePairs(IEnumerable(settings.ToDictionary(x => x.Key, x => x.Value)); - return Settings(new KeyValuePairSettings(settingsDictionary)); + return Settings(new KeyValuePairSettings(settings.ToDictionary(x => x.Key, x => x.Value))); } } }