mikedilger / gossip

Gossip is a nostr client
Other
717 stars 81 forks source link

Filter out raw html from the log #434

Closed dtonon closed 1 year ago

dtonon commented 1 year ago

When the relay outputs a full html dump this floods the log because it causes a parsing problem, of course. I don't know which is the best way to handle this. Maybe crop the first N lines, but this way we lose any important message in the body.

Example of the long log ``` 2023-07-26T09:45:05.067599Z WARN src/overlord/minion/mod.rs:125: wss://nostr.band/: Unable to parse response as NIP-11 (expected value at line 1 column 1): Trending posts on Nostr | Nostr.Band
Loading...
Getting started with Nostr?

If you're just figuring this thing out, you should probably start with a good guide.

Go to nostr-resources.com →
Love RSS?

Create an RSS feed with posts matching a keyword, and use your favorite app to read new posts.

Discover RSS feeds →
Want a name@nostr.band?

Here you can purchase a nice name@nostr.band alias for your Nostr pubkey (NIP-05 identifier).

Get a NIP-05 name →
Looking for Nostr stats?

Check the real-time network statistics and graphs that Nostr.Band is collecting.

Check out Nostr stats →
```

Branch: Unstable [3cf8d9cc]

dtonon commented 1 year ago

Temp quick fix: https://github.com/mikedilger/gossip/pull/435

mikedilger commented 1 year ago

I'm gonna consider that quick fix to close this issue.