From: asteroide Date: Mon, 22 May 2017 07:57:01 +0000 (+0200) Subject: Add logs when a slave is added. X-Git-Tag: opnfv-5.1.RC1~79 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F35647%2F1;p=moon.git Add logs when a slave is added. Change-Id: Ifa70f9b061091c274e7ff760e449a08d3a3c2ad4 --- 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