From cff1381af2a7241ee125da5b24311e555f41a8c6 Mon Sep 17 00:00:00 2001 From: Cuzmin Vasile <40390118+VCuzmin@users.noreply.github.com> Date: Thu, 7 Jan 2021 10:18:16 +0200 Subject: [PATCH] Logging failure encountered deserializing has been enriched (#106) --- .../NBB.Messaging.Abstractions/MessageBusSubscriber.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Messaging/NBB.Messaging.Abstractions/MessageBusSubscriber.cs b/src/Messaging/NBB.Messaging.Abstractions/MessageBusSubscriber.cs index 62f6c905..e80e9f4d 100644 --- a/src/Messaging/NBB.Messaging.Abstractions/MessageBusSubscriber.cs +++ b/src/Messaging/NBB.Messaging.Abstractions/MessageBusSubscriber.cs @@ -63,8 +63,8 @@ async Task HandleMessage(string msg) catch (Exception ex) { _logger.LogError( - "MessageBusSubscriber encountered an error when deserializing a message from topic {TopicName}.\n {Error}", - _topicName, ex); + "MessageBusSubscriber encountered an error when deserializing a message from topic {TopicName}.\n {Error} \n Message: {Message}", + _topicName, ex, msg); //TODO: push to DLQ }