Strip message tags in error message

The time tag was causing the registration error messages to be
continuously sent to downstream connections.
This commit is contained in:
Simon Ser 2020-08-19 11:50:19 +02:00
parent 78361f0b1e
commit ee32329a14
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1520,6 +1520,7 @@ func (uc *upstreamConn) runUntilRegistered() error {
}
if err := uc.handleMessage(msg); err != nil {
msg.Tags = nil // prevent message tags from cluttering logs
return fmt.Errorf("failed to handle message %q: %v", msg, err)
}
}