mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-19 15:09:57 +02:00
print all filters when doesn't match.
This commit is contained in:
parent
f37eb96f28
commit
ee8f58360f
2
relay.go
2
relay.go
@ -193,7 +193,7 @@ func (r *Relay) Connect(ctx context.Context) error {
|
|||||||
func() {
|
func() {
|
||||||
// check if the event matches the desired filter, ignore otherwise
|
// check if the event matches the desired filter, ignore otherwise
|
||||||
if !subscription.Filters.Match(&env.Event) {
|
if !subscription.Filters.Match(&env.Event) {
|
||||||
InfoLogger.Printf("{%s} filter does not match: %v ~ %v\n", r.URL, subscription.Filters[0], env.Event)
|
InfoLogger.Printf("{%s} filter does not match: %v ~ %v\n", r.URL, subscription.Filters, env.Event)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user