diff --git a/src/Altinn.Notifications.Email.Integrations/Producers/CommonProducer.cs b/src/Altinn.Notifications.Email.Integrations/Producers/CommonProducer.cs index fb33513..20390bc 100644 --- a/src/Altinn.Notifications.Email.Integrations/Producers/CommonProducer.cs +++ b/src/Altinn.Notifications.Email.Integrations/Producers/CommonProducer.cs @@ -61,7 +61,7 @@ public async Task ProduceAsync(string topic, string message) catch (ProduceException ex) { _logger.LogError(ex, "// KafkaProducer // ProduceAsync // Permanent error: {Message} for message (value: '{DeliveryResult}')", ex.Message, ex.DeliveryResult.Value); - throw; + return false; } return true;