From ee32329a1464fd740295f4ef0ce0d354f56e1779 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 19 Aug 2020 11:50:19 +0200 Subject: [PATCH] Strip message tags in error message The time tag was causing the registration error messages to be continuously sent to downstream connections. --- upstream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/upstream.go b/upstream.go index 07d6266..77c155f 100644 --- a/upstream.go +++ b/upstream.go @@ -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) } }