Skip to content

Commit

Permalink
Fix SeqIngestionApi not calling TryIngestAsync with ConfigureAwait(fa…
Browse files Browse the repository at this point in the history
…lse)
  • Loading branch information
lordmilko committed Mar 31, 2024
1 parent 31fa468 commit 7441da7
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 7441da7

Please sign in to comment.