mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Replaced %v with %s so String() is not needed
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user