print all filters when doesn't match.

This commit is contained in:
fiatjaf 2023-06-09 16:11:16 -03:00
parent f37eb96f28
commit ee8f58360f
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -193,7 +193,7 @@ func (r *Relay) Connect(ctx context.Context) error {
func() {
// check if the event matches the desired filter, ignore otherwise
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
}