diff --git a/framework/Furion.Pure/Logging/Internal/Penetrates.cs b/framework/Furion.Pure/Logging/Internal/Penetrates.cs index df113b544ea..2ce9745b3b5 100644 --- a/framework/Furion.Pure/Logging/Internal/Penetrates.cs +++ b/framework/Furion.Pure/Logging/Internal/Penetrates.cs @@ -257,7 +257,8 @@ internal static LogContext SetLogContext(IExternalScopeProvider scopeProvider, b var logConext = new LogContext { Properties = contexts.SelectMany(p => p.Properties) - .ToDictionary(u => u.Key, u => u.Value), + .GroupBy(p => p.Key) + .ToDictionary(u => u.Key, u => u.FirstOrDefault().Value), Scopes = scopes }; diff --git a/framework/Furion/Logging/Internal/Penetrates.cs b/framework/Furion/Logging/Internal/Penetrates.cs index df113b544ea..2ce9745b3b5 100644 --- a/framework/Furion/Logging/Internal/Penetrates.cs +++ b/framework/Furion/Logging/Internal/Penetrates.cs @@ -257,7 +257,8 @@ internal static LogContext SetLogContext(IExternalScopeProvider scopeProvider, b var logConext = new LogContext { Properties = contexts.SelectMany(p => p.Properties) - .ToDictionary(u => u.Key, u => u.Value), + .GroupBy(p => p.Key) + .ToDictionary(u => u.Key, u => u.FirstOrDefault().Value), Scopes = scopes };