diff --git a/IServiceCollectionExtensions.cs b/IServiceCollectionExtensions.cs index fbc0e5b..30bf467 100644 --- a/IServiceCollectionExtensions.cs +++ b/IServiceCollectionExtensions.cs @@ -28,6 +28,6 @@ private static void ConfigureClient(HttpClient client) { client.Timeout = TimeSpan.FromSeconds(HttpClientConstants.PostTimeoutSeconds); client.DefaultRequestHeaders.Add("Accept", "application/json"); - client.DefaultRequestHeaders.Add("User-Agent", "logflake-client-netcore/1.8.1"); + client.DefaultRequestHeaders.Add("User-Agent", "logflake-client-netcore/1.8.2"); } } diff --git a/LogFlake.csproj b/LogFlake.csproj index 33bce3d..f81477f 100644 --- a/LogFlake.csproj +++ b/LogFlake.csproj @@ -2,7 +2,7 @@ LogFlake.Client.NetCore - 1.8.1 + 1.8.2 CloudPhoenix Srl CloudPhoenix Srl netstandard2.1 @@ -27,10 +27,10 @@ - - + + - + diff --git a/README.md b/README.md index 496a81f..0c2357f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# LogFlake Client .NET Core ![Version](https://img.shields.io/badge/version-1.8.1-blue.svg?cacheSeconds=2592000) +# LogFlake Client .NET Core ![Version](https://img.shields.io/badge/version-1.8.2-blue.svg?cacheSeconds=2592000) > This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for .NET applications. diff --git a/Services/LogFlakeService.cs b/Services/LogFlakeService.cs index 4dd358a..b60a746 100644 --- a/Services/LogFlakeService.cs +++ b/Services/LogFlakeService.cs @@ -17,7 +17,7 @@ public void WriteLog(LogLevels logLevel, string? message, string? correlation, D { parameters ??= []; - parameters.Add("assemblyVersion", _version); + _ = parameters.TryAdd("assemblyVersion", _version); _logFlake.SendLog(logLevel, correlation, message, parameters); }