mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Print logs
This commit is contained in:
parent
b33a40b7aa
commit
8329c89be2
1 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,10 @@ class SubscribersServiceManager(ServiceManager, IClientHandler):
|
|||
self._subscribers_server_socket = serversock
|
||||
self._subscribers = []
|
||||
|
||||
def stop(self):
|
||||
super(SubscribersServiceManager, self).stop()
|
||||
self._subscribers_server_socket.close()
|
||||
|
||||
def refresh(self):
|
||||
while not self._stop_listen:
|
||||
rsockets = []
|
||||
|
@ -210,6 +214,8 @@ class SubscribersServiceManager(ServiceManager, IClientHandler):
|
|||
|
||||
def __add_subscriber(self, subs: SubscriberConnection):
|
||||
self._subscribers.append(subs)
|
||||
print('Welcome registered user: {0}, connections: {1}', subs.info.email, len(self._subscribers))
|
||||
|
||||
def __remove_subscriber(self, subs: SubscriberConnection):
|
||||
self._subscribers.remove(subs)
|
||||
print('Bye registered user: {0}, connections: {1}', subs.info.email, len(self._subscribers))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue