Skip to content

Commit def575e

Browse files
author
Steve Manweiler
committed
fixed bad CONNACK log
1 parent b870fa3 commit def575e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (c *client) attemptConnection() (net.Conn, byte, bool, error) {
413413
goto CONN
414414
}
415415
if c.options.protocolVersionExplicit { // to maintain logging from previous version
416-
ERROR.Println(CLI, "Connecting to", broker, "CONNACK was not CONN_ACCEPTED, but rather", packets.ConnackReturnCodes[rc])
416+
ERROR.Println(CLI, "Connecting to", broker, fmt.Sprintf("%s: CONNACK was not CONN_ACCEPTED, but rather %s", c.options.ClientID, packets.ConnackReturnCodes[rc]))
417417
}
418418
}
419419
// If the connection was successful we set member variable and lock in the protocol version for future connection attempts (and users)

0 commit comments

Comments
 (0)