From 0fcb478aab4b821c48ca3e9d0ecdd3a4195f5b99 Mon Sep 17 00:00:00 2001 From: nickvsnetworking Date: Fri, 27 Dec 2024 14:06:05 +1100 Subject: [PATCH] Logging in getting emergency subscriber --- lib/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/database.py b/lib/database.py index 67d63b6..f57b3dd 100755 --- a/lib/database.py +++ b/lib/database.py @@ -2219,7 +2219,7 @@ def Get_IMS_Subscriber_By_Session_Id(self, sessionId): return result def Get_Emergency_Subscriber(self, emergencySubscriberId: int=None, subscriberIp: str=None, gxSessionId: str=None, rxSessionId: str=None, imsi: str=None, **kwargs) -> dict: - self.logTool.log(service='Database', level='debug', message=f"Getting Emergency_Subscriber", redisClient=self.redisMessaging) + self.logTool.log(service='Database', level='debug', message=f"[database.py] [Get_Emergency_Subscriber] Getting Emergency_Subscriber", redisClient=self.redisMessaging) Session = sessionmaker(bind = self.engine) session = Session() @@ -2255,6 +2255,7 @@ def Get_Emergency_Subscriber(self, emergencySubscriberId: int=None, subscriberIp break if not result: + self.logTool.log(service='Database', level='debug', message=f"[database.py] [Get_Emergency_Subscriber] No match for emergency subscriber on IMSI: {imsi} / Subscriber IP: {subscriberIp} / gxSessionId: {gxSessionId} / rxSessionId: {rxSessionId}", redisClient=self.redisMessaging) return None result = result.__dict__ result.pop('_sa_instance_state')