Reduce log verbosity in readiness_loop function 18/14718/3 master
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 8 Nov 2024 13:22:49 +0000 (14:22 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Sat, 9 Nov 2024 09:25:07 +0000 (10:25 +0100)
Change-Id: Ib53d726f9910e5afed29f0d97656eeed367b9fb9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/odu_libs/workflows.py

index 094aa9e..80527ed 100644 (file)
@@ -17,7 +17,6 @@
 
 
 import asyncio
-import yaml
 from math import ceil
 
 
@@ -95,10 +94,10 @@ async def readiness_loop(self, item, name, namespace, flag, timeout):
             name=name,
         )
         if generic_object:
-            self.logger.debug(f"{yaml.safe_dump(generic_object)}")
+            self.logger.debug(f"{yaml.safe_dump(generic_object)}")
             conditions = generic_object.get("status", {}).get("conditions", [])
         else:
-            self.logger.debug(
+            self.logger.info(
                 f"Could not find {api_plural}. Name: {name}. Namespace: '{namespace}'. API: {api_group}/{api_version}"
             )
             conditions = []