Skip to content

Commit dda2bc2

Browse files
committed
Some user friendly & help boot messages:
* on load: Stan is on the scene. Starting Instana instrumentation. * on successful announce: instana(28635): Host agent available. We're in business. (Announced pid: 28635)
1 parent 021df58 commit dda2bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instana/fsm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Fsm(object):
2424
timer = None
2525

2626
def __init__(self, agent):
27+
l.info("Stan is on the scene. Starting Instana instrumentation.")
2728
l.debug("initializing fsm")
2829

2930
self.agent = agent
@@ -41,7 +42,7 @@ def __init__(self, agent):
4142

4243
def printstatechange(self, e):
4344
l.debug('========= (%i#%s) FSM event: %s, src: %s, dst: %s ==========' % \
44-
(os.getpid(), t.current_thread().name, e.event, e.src, e.dst))
45+
(os.getpid(), t.current_thread().name, e.event, e.src, e.dst))
4546

4647
def reset(self):
4748
self.fsm.lookup()
@@ -106,6 +107,7 @@ def announce_sensor(self, e):
106107
else:
107108
self.agent.set_from(b)
108109
self.fsm.ready()
110+
l.warn("Host agent available. We're in business. (Announced pid: %i)" % p.pid)
109111
return True
110112

111113
def schedule_retry(self, fun, e, name):

0 commit comments

Comments
 (0)