Skip to content

Commit

Permalink
log error in case of producer exception (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
acn-sbuad authored Sep 22, 2023
1 parent 09686f4 commit 93881cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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 93881cb

Please sign in to comment.