Include hostname in control connection logs

This commit is contained in:
Tyler Hobbs
2013-07-03 18:11:11 -05:00
parent b6eb7e076e
commit 4058b654b5

View File

@@ -889,11 +889,12 @@ class ControlConnection(object):
Creates a new Connection, registers for pushed events, and refreshes
node/token and schema metadata.
"""
log.debug("[control connection] Opening new connection to %s" % (host,))
log.debug("[control connection] Opening new connection to %s", host)
connection = self._cluster.connection_factory(host.address)
log.debug("[control connection] Established new connection, registering "
"watchers and refreshing schema and topology")
log.debug("[control connection] Established new connection to %s, "
"registering watchers and refreshing schema and topology",
host)
try:
connection.register_watchers({
"TOPOLOGY_CHANGE": self._handle_topology_change,