aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-05-22 09:57:01 +0200
committerasteroide <thomas.duval@orange.com>2017-05-22 09:57:01 +0200
commitf6a6df2f488c464d949fcd350d1d96f47969a93c (patch)
tree1dcf022a54bdb822509dd491c0f35f8738c2c845 /moonv4
parentdfb3cafc5a3fa737ec93d820af7fca6886636fb7 (diff)
Add logs when a slave is added.
Change-Id: Ifa70f9b061091c274e7ff760e449a08d3a3c2ad4
Diffstat (limited to 'moonv4')
-rw-r--r--moonv4/moon_orchestrator/moon_orchestrator/api/slaves.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/moonv4/moon_orchestrator/moon_orchestrator/api/slaves.py b/moonv4/moon_orchestrator/moon_orchestrator/api/slaves.py
index 66ddf256..9142a830 100644
--- a/moonv4/moon_orchestrator/moon_orchestrator/api/slaves.py
+++ b/moonv4/moon_orchestrator/moon_orchestrator/api/slaves.py
@@ -45,7 +45,9 @@ class Slaves(object):
ctx.pop("method")
ctx.pop("call_master")
self.slaves[uuid] = ctx
+ LOG.info("New slave added: {}".format(ctx['name']))
return {"slaves": {uuid: ctx}}
+ LOG.warning("No name given for the new slave.")
def get_slaves(self, ctx, args=None):
"""Get all the known slaves