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/vim_mgmt.py b/osm_lcm/odu_libs/vim_mgmt.py
index 8014f0c..08633b0 100644
--- a/osm_lcm/odu_libs/vim_mgmt.py
+++ b/osm_lcm/odu_libs/vim_mgmt.py
@@ -23,8 +23,10 @@
async def create_cloud_credentials(self, op_id, op_params, content):
- self.logger.info("Create cloud_credentials workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"create_cloud_credentials Enter. Operation {op_id}. Params: {op_params}"
+ )
+ # self.logger.debug(f"Content: {content}")
workflow_template = "launcher-create-providerconfig.j2"
workflow_name = f"create-providerconfig-{content['_id']}"
@@ -95,8 +97,10 @@
async def delete_cloud_credentials(self, op_id, op_params, content):
- self.logger.info("Delete cloud_credentials workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"delete_cloud_credentials Enter. Operation {op_id}. Params: {op_params}"
+ )
+ # self.logger.debug(f"Content: {content}")
workflow_template = "launcher-delete-providerconfig.j2"
workflow_name = f"delete-providerconfig-{content['_id']}"
@@ -136,8 +140,10 @@
async def update_cloud_credentials(self, op_id, op_params, content):
- self.logger.info("Update cloud_credentials workflow Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"update_cloud_credentials Enter. Operation {op_id}. Params: {op_params}"
+ )
+ # self.logger.debug(f"Content: {content}")
workflow_template = "launcher-update-providerconfig.j2"
workflow_name = f"update-providerconfig-{content['_id']}"
@@ -205,7 +211,9 @@
async def clean_items_cloud_credentials_create(self, op_id, op_params, content):
- self.logger.info("Clean items cloud_credentials_create Enter")
+ self.logger.info(
+ f"clean_items_cloud_credentials_create Enter. Operation {op_id}. Params: {op_params}"
+ )
items = {
"secrets": [
{
@@ -222,8 +230,9 @@
async def clean_items_cloud_credentials_update(self, op_id, op_params, content):
- self.logger.info("Clean items cloud_credentials_update Enter")
- self.logger.info(f"Operation {op_id}. Params: {op_params}. Content: {content}")
+ self.logger.info(
+ f"clean_items_cloud_credentials_update Enter. Operation {op_id}. Params: {op_params}"
+ )
return await self.clean_items_cloud_credentials_create(op_id, op_params, content)