Skip to content

Commit

Permalink
Add Logging for ApiStats
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Nov 3, 2023
1 parent dfeb62e commit fc37b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PugSharp.ApiStats/ApiStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ public class ApiStats : IDisposable

public ApiStats(string apiStatsUrl, string apiStatsKey)
{
_Logger.LogInformation("Create Api Stats with BaseUrl: {url}", apiStatsUrl);
_HttpClient = new HttpClient()
{
BaseAddress = new Uri(apiStatsUrl)
BaseAddress = new Uri(apiStatsUrl),
};

_HttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiStatsKey);
Expand Down Expand Up @@ -140,7 +141,6 @@ internal static string CreateIntParam(int param)
return param.ToString(CultureInfo.InvariantCulture);
}


public async Task SendSeriesResultAsync(SeriesResultParams seriesResultParams, CancellationToken cancellationToken)
{
var queryParams = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Expand Down

0 comments on commit fc37b7c

Please sign in to comment.