What is Nostr?
prs / Damus PRs
npub1ahc…7v97
2023-06-08 12:09:51

prs on Nostr: add relay logging (#1263) This PR adds relay logging to the RelayDetailView. ...

add relay logging (#1263)

This PR adds relay logging to the RelayDetailView.

Features:
* list of events, most recent at the top
* shows changes to RelayConnection's state
* shows changes to network state
* RelayDetailView updates live as lines are added to the log
* logs persisted to disk for later investigation
* line limit prevents unbounded file growth


Here's how it looks when resuming after having the app in the background for a while and the relays need to reconnect:

![relay-log](https://github.com/damus-io/damus/assets/445882/fd788aae-ed44-49c5-9dd1-4e6c7398456e)


relays, 5 commits

https://github.com/damus-io/damus/pull/1263
Author Public Key
npub1ahckk8wkr64n2w5r4arsesf42upfhlmgy76vhxmlex7mvv4zhrnqry7v97