Skip to content

Commit

Permalink
log but dont throw producer exception (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
acn-sbuad authored Sep 22, 2023
1 parent dc61136 commit 1e58c9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task<bool> ProduceAsync(string topic, string message)
catch (ProduceException<long, string> ex)
{
_logger.LogError(ex, "// KafkaProducer // ProduceAsync // Permanent error: {Message} for message (value: '{DeliveryResult}')", ex.Message, ex.DeliveryResult.Value);
throw;
return false;
}

return true;
Expand Down

0 comments on commit 1e58c9e

Please sign in to comment.