Include hostname in control connection logs
This commit is contained in:
@@ -889,11 +889,12 @@ class ControlConnection(object):
|
|||||||
Creates a new Connection, registers for pushed events, and refreshes
|
Creates a new Connection, registers for pushed events, and refreshes
|
||||||
node/token and schema metadata.
|
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)
|
connection = self._cluster.connection_factory(host.address)
|
||||||
|
|
||||||
log.debug("[control connection] Established new connection, registering "
|
log.debug("[control connection] Established new connection to %s, "
|
||||||
"watchers and refreshing schema and topology")
|
"registering watchers and refreshing schema and topology",
|
||||||
|
host)
|
||||||
try:
|
try:
|
||||||
connection.register_watchers({
|
connection.register_watchers({
|
||||||
"TOPOLOGY_CHANGE": self._handle_topology_change,
|
"TOPOLOGY_CHANGE": self._handle_topology_change,
|
||||||
|
|||||||
Reference in New Issue
Block a user