Pārlūkot izejas kodu

Fixed kafka producer exception log without logging when publish message.

undefined
Savorboard pirms 6 gadiem
vecāks
revīzija
c9f672e08b
2 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. +2
    -6
      src/DotNetCore.CAP.Kafka/IPublishMessageSender.Kafka.cs
  2. +0
    -1
      src/DotNetCore.CAP/Infrastructure/Helper.cs

+ 2
- 6
src/DotNetCore.CAP.Kafka/IPublishMessageSender.Kafka.cs Parādīt failu

@@ -36,11 +36,7 @@ namespace DotNetCore.CAP.Kafka

if (message.Error.HasError)
{
return OperateResult.Failed(new OperateError
{
Code = message.Error.Code.ToString(),
Description = message.Error.Reason
});
throw new PublisherSentFailedException(message.Error.ToString());
}

_logger.LogDebug($"kafka topic message [{keyName}] has been published.");
@@ -61,6 +57,6 @@ namespace DotNetCore.CAP.Kafka
producer.Dispose();
}
}
}
}
}
}

+ 0
- 1
src/DotNetCore.CAP/Infrastructure/Helper.cs Parādīt failu

@@ -86,7 +86,6 @@ namespace DotNetCore.CAP.Infrastructure
return !CanConvertFromString(type);
}


public static string AddExceptionProperty(string json, Exception exception)
{
var jObject = ToJObject(exception);


Notiek ielāde…
Atcelt
Saglabāt