Skip to content

Commit

Permalink
Merge pull request #13 from CloudPhoenix/feature/safely-add-assembly-…
Browse files Browse the repository at this point in the history
…version

Safely add assemblyVersion
  • Loading branch information
dedo1911 authored Oct 31, 2024
2 parents 1e75c65 + 0577caa commit bcf9107
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
8 changes: 4 additions & 4 deletions LogFlake.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>LogFlake.Client.NetCore</PackageId>
<Version>1.8.1</Version>
<Version>1.8.2</Version>
<Authors>CloudPhoenix Srl</Authors>
<Company>CloudPhoenix Srl</Company>
<TargetFramework>netstandard2.1</TargetFramework>
Expand All @@ -27,10 +27,10 @@
<ItemGroup>
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="Snappier" Version="1.1.6" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Services/LogFlakeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bcf9107

Please sign in to comment.