Skip to content

Commit

Permalink
Merge pull request #215 from lordmilko/patch-1
Browse files Browse the repository at this point in the history
Fix SeqIngestionApi not calling TryIngestAsync with ConfigureAwait(false)
  • Loading branch information
nblumhardt authored Apr 1, 2024
2 parents 31fa468 + 7441da7 commit 7a1b3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serilog.Sinks.Seq/Sinks/Seq/Http/SeqIngestionApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ abstract class SeqIngestionApi : IDisposable
/// <exception cref="HttpRequestException">The ingestion request could not be sent.</exception>
public async Task<LogEventLevel?> IngestAsync(string clefPayload)
{
var result = await TryIngestAsync(clefPayload, CompactLogEventFormatMediaType);
var result = await TryIngestAsync(clefPayload, CompactLogEventFormatMediaType).ConfigureAwait(false);

if (!result.Succeeded)
throw new LoggingFailedException($"Received failed result {result.StatusCode} when posting events to Seq.");
Expand Down

0 comments on commit 7a1b3c7

Please sign in to comment.