Add more logs to ns.py to know nsr and nsd retrieved from db 94/11394/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 23 Nov 2021 09:04:12 +0000 (10:04 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 1 Dec 2021 09:33:09 +0000 (10:33 +0100)
Change-Id: Id4a9dd111ccc26fd98e9fcce60f74d6d24af66d1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/ns.py

index 9fd440e..22a3dcc 100644 (file)
@@ -2286,8 +2286,10 @@ class NsLcm(LcmBase):
 
             # read from db: ns
             stage[1] = "Getting nsr={} from db.".format(nsr_id)
+            self.logger.debug(logging_text + stage[1])
             db_nsr = self.db.get_one("nsrs", {"_id": nsr_id})
             stage[1] = "Getting nsd={} from db.".format(db_nsr["nsd-id"])
+            self.logger.debug(logging_text + stage[1])
             nsd = self.db.get_one("nsds", {"_id": db_nsr["nsd-id"]})
             self.fs.sync(db_nsr["nsd-id"])
             db_nsr["nsd"] = nsd