mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-20 19:17:54 +01:00
log relay url too when filter doesn't match.
This commit is contained in:
2
relay.go
2
relay.go
@@ -198,7 +198,7 @@ func (r *Relay) Connect(ctx context.Context) error {
|
|||||||
|
|
||||||
// check if the event matches the desired filter, ignore otherwise
|
// check if the event matches the desired filter, ignore otherwise
|
||||||
if !subscription.Filters.Match(&event) {
|
if !subscription.Filters.Match(&event) {
|
||||||
log.Printf("filter does not match: %v ~ %v\n", subscription.Filters[0], event)
|
log.Printf("filter does not match (%s): %v ~ %v\n", r.URL, subscription.Filters[0], event)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user