move event info logging from Updater into VbanCmd

odd logout logging

patch bump
This commit is contained in:
onyx-and-iris
2022-09-29 11:48:30 +01:00
parent 566bff3ced
commit 2048a807d1
4 changed files with 7 additions and 4 deletions

View File

@@ -52,6 +52,7 @@ class VbanCmd(metaclass=ABCMeta):
def login(self):
"""Starts the subscriber and updater threads"""
self.running = True
self.event.info()
self.subscriber = Subscriber(self)
self.subscriber.start()
@@ -163,6 +164,7 @@ class VbanCmd(metaclass=ABCMeta):
self.running = False
time.sleep(0.2)
[sock.close() for sock in self.socks]
self.logger.info(f"{type(self).__name__}: Successfully logged out of {self}")
def __exit__(self, exc_type, exc_value, exc_traceback):
self.logout()