From d0f200bae9e9d3b0d23af5b338e65adde633438b Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 11 Jul 2023 21:03:00 +0100 Subject: [PATCH] Print all messages received --- NostrStreamer/Services/NostrListener.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NostrStreamer/Services/NostrListener.cs b/NostrStreamer/Services/NostrListener.cs index 26cb0a0..c744090 100644 --- a/NostrStreamer/Services/NostrListener.cs +++ b/NostrStreamer/Services/NostrListener.cs @@ -85,6 +85,7 @@ public class NostrListener : IDisposable comm.DisconnectionHappened.Subscribe(info => _logger.LogWarning("[{relay}] Disconnected, type: {type}, reason: {reason}", comm.Name, info.Type, info.CloseStatus)); + comm.MessageReceived.Subscribe(msg => _logger.LogInformation(msg.Text)); return comm; }