Skip to content

Commit

Permalink
Logging in getting emergency subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvsnetworking committed Dec 27, 2024
1 parent 7807118 commit 0fcb478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 0fcb478

Please sign in to comment.