diff --git a/.travis.yml b/.travis.yml index 981600ba..4ec43e36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: python +dist: trusty + python: - "2.7" - "3.4" diff --git a/instana/agent.py b/instana/agent.py index b69cbacd..9514ab2a 100644 --- a/instana/agent.py +++ b/instana/agent.py @@ -123,10 +123,10 @@ def is_agent_listening(self, host, port): logger.debug("Host agent found on %s:%d" % (host, port)) rv = True else: - logger.debug("...something is listening on %s:%d but it's not the Instana Agent: %s" + logger.debug("...something is listening on %s:%d but it's not the Instana Host Agent: %s" % (host, port, server_header)) except (requests.ConnectTimeout, requests.ConnectionError): - logger.debug("No host agent listening on %s:%d" % (host, port)) + logger.debug("Instana Host Agent not found on %s:%d" % (host, port)) rv = False finally: return rv diff --git a/instana/fsm.py b/instana/fsm.py index e1b14696..7bbb961e 100644 --- a/instana/fsm.py +++ b/instana/fsm.py @@ -81,7 +81,6 @@ def reset(self): self.fsm.lookup() def lookup_agent_host(self, e): - logger.debug("lookup_agent_host") host, port = self.__get_agent_host_port() if self.agent.is_agent_listening(host, port): @@ -106,7 +105,7 @@ def lookup_agent_host(self, e): return False def announce_sensor(self, e): - logger.debug("announcing sensor to the agent") + logger.debug("Announcing sensor to the agent") sock = None pid = os.getpid() cmdline = [] @@ -147,7 +146,7 @@ def announce_sensor(self, e): if response and (response.status_code is 200) and (len(response.content) > 2): self.agent.set_from(response.content) self.fsm.pending() - logger.debug("Announced pid: %s (true pid: %s) Waiting for Agent Ready" % (str(pid), str(self.agent.from_.pid))) + logger.debug("Announced pid: %s (true pid: %s). Waiting for Agent Ready..." % (str(pid), str(self.agent.from_.pid))) return True else: logger.debug("Cannot announce sensor. Scheduling retry.") @@ -155,7 +154,6 @@ def announce_sensor(self, e): return False def schedule_retry(self, fun, e, name): - logger.debug("Scheduling: " + name) self.timer = t.Timer(self.RETRY_PERIOD, fun, [e]) self.timer.daemon = True self.timer.name = name diff --git a/instana/instrumentation/tornado/__init___.py b/instana/instrumentation/tornado/__init___.py new file mode 100644 index 00000000..e69de29b diff --git a/instana/sensor.py b/instana/sensor.py index 770dfa6c..1fa96af3 100644 --- a/instana/sensor.py +++ b/instana/sensor.py @@ -17,7 +17,6 @@ def __init__(self, agent, options=None): self.agent = agent self.meter = Meter(agent) - logger.debug("initialized sensor") def set_options(self, options): self.options = options