Update log level in all ODU methods
Change-Id: I1c0e22baf62ef513a89b1ee6895d42cbea358f51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_lcm/odu_libs/profiles.py b/osm_lcm/odu_libs/profiles.py
index fd22902..179bd3a 100644
--- a/osm_lcm/odu_libs/profiles.py
+++ b/osm_lcm/odu_libs/profiles.py
@@ -20,8 +20,8 @@
async def create_profile(self, op_id, op_params, content):
- self.logger.info("Create profile workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(f"create_profile Enter. Operation {op_id}. Params: {op_params}")
+ # self.logger.debug(f"Content: {content}")
workflow_template = "launcher-create-profile.j2"
workflow_name = f"create-profile-{content['_id']}"
@@ -58,8 +58,8 @@
async def delete_profile(self, op_id, op_params, content):
- self.logger.info("Delete profile workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(f"delete_profile Enter. Operation {op_id}. Params: {op_params}")
+ # self.logger.debug(f"Content: {content}")
workflow_template = "launcher-delete-profile.j2"
workflow_name = f"delete-profile-{content['_id']}"
@@ -96,8 +96,10 @@
async def attach_profile_to_cluster(self, op_id, op_params, content):
- self.logger.info("Attach profile to cluster workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"attach_profile_to_cluster Enter. Operation {op_id}. Params: {op_params}"
+ )
+ # self.logger.debug(f"Content: {content}")
profile = content["profile"]
cluster = content["cluster"]
@@ -138,8 +140,10 @@
async def detach_profile_from_cluster(self, op_id, op_params, content):
- self.logger.info("Detach profile to cluster workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"detach_profile_from_cluster Enter. Operation {op_id}. Params: {op_params}"
+ )
+ # self.logger.debug(f"Content: {content}")
profile = content["profile"]
cluster = content["cluster"]