From 2ec00d86eda54a124e9b87e858c5d9fcb2940e22 Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Wed, 15 Apr 2020 17:52:44 -0600 Subject: [PATCH] Replaced %v with %s so String() is not needed Signed-off-by: Ivan Kozlovic --- server/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/client.go b/server/client.go index 1c7b2c26..7d7a1ad3 100644 --- a/server/client.go +++ b/server/client.go @@ -1199,9 +1199,9 @@ func (c *client) markConnAsClosed(reason ClosedState, skipFlush bool) bool { // Be consistent with the creation: for routes and gateways, // we use Noticef on create, so use that too for delete. if c.kind == ROUTER || c.kind == GATEWAY { - c.Noticef("%s connection closed: %v", c.typeString(), reason.String()) + c.Noticef("%s connection closed: %s", c.typeString(), reason) } else { // Client and Leaf Node connections. - c.Debugf("%s connection closed: %v", c.typeString(), reason.String()) + c.Debugf("%s connection closed: %s", c.typeString(), reason) } // Save off the connection if its a client or leafnode.