From cc662fba8f6c0ba2cdf3db1a6c1d0838f448455a Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Mon, 4 Jan 2021 13:40:51 +0100 Subject: [PATCH] fix minor ux issues Signed-off-by: R.I.Pienaar --- nats/context_command.go | 1 + nats/pub_command.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/nats/context_command.go b/nats/context_command.go index 9d9d7e65..42f34e91 100644 --- a/nats/context_command.go +++ b/nats/context_command.go @@ -337,6 +337,7 @@ func (c *ctxCommand) showIfNotEmpty(format string, val string, arg ...interface{ if !strings.Contains(format, "%") { fmt.Print(format) + return } fmt.Printf(format, append([]interface{}{interface{}(val)}, arg...)...) diff --git a/nats/pub_command.go b/nats/pub_command.go index edea746b..1c72daec 100644 --- a/nats/pub_command.go +++ b/nats/pub_command.go @@ -103,7 +103,6 @@ func (c *pubCmd) doReq(nc *nats.Conn) error { } log.Printf("Received on %q rtt %v", m.Subject, time.Since(start)) - log.Printf("body: %q", string(m.Data)) if len(m.Header) > 0 { for h, vals := range m.Header { for _, val := range vals {