Skip to content

Commit

Permalink
Make sure self.logger is always initialized. SIP stack expects it
Browse files Browse the repository at this point in the history
to be.
  • Loading branch information
sobomax committed Dec 26, 2024
1 parent a632db2 commit 4187f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SIP/InfernSIPConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class InfernSIPConf():
logger = None

def __init__(self, conf:Optional[dict]=None):
self.logger = SipLogger('Infernos', logfile = expanduser('~/.Infernos.log'))
if conf is not None:
try:
bind = conf['bind'].split(':', 1)
Expand All @@ -33,4 +34,3 @@ def __init__(self, conf:Optional[dict]=None):
return
self.laddr = SipConf.my_address
self.lport = SipConf.my_port
self.logger = SipLogger('Infernos', logfile = expanduser('~/.Infernos.log'))

0 comments on commit 4187f49

Please sign in to comment.