Skip to content

Commit

Permalink
dbug: add a debug mode where we can see the messages received
Browse files Browse the repository at this point in the history
  • Loading branch information
titouancreach committed Nov 8, 2022
1 parent 3992ef3 commit 95c252e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Unitee.EventDriven.Attributes;
using Unitee.RedisStream;

namespace Unitee.EventDriven.DependencyInjection;
namespace Unitee.EventDriven.RedisStream;

public class RedisStreamBackgroundReceiver : BackgroundService
{
Expand Down Expand Up @@ -49,6 +49,8 @@ private async Task<bool> TryConsume<TMessage>(TMessage message, string subjectRe
return false;
}

_logger.LogDebug("Consuming message {} with subject: {}", message, subjectRegistered);

await consumer.ConsumeAsync(message);
return true;
}
Expand Down
1 change: 1 addition & 0 deletions Unitee.EventDriven.RedisStream/ServiceConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Unitee.EventDriven.RedisStream;

namespace Unitee.EventDriven.DependencyInjection;

Expand Down

0 comments on commit 95c252e

Please sign in to comment.