Print all messages received

This commit is contained in:
2023-07-11 21:03:00 +01:00
parent 71fa94abbe
commit d0f200bae9

View File

@ -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;
}