mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
logging module now used to log interface events.
register, deregister method aliases added to Subject class.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import logging
|
||||
import socket
|
||||
import time
|
||||
from abc import ABCMeta, abstractmethod
|
||||
@@ -21,6 +22,7 @@ class VbanCmd(metaclass=ABCMeta):
|
||||
1000000, 1500000, 2000000, 3000000,
|
||||
]
|
||||
# fmt: on
|
||||
logger = logging.getLogger("vbancmd.vbancmd")
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
for attr, val in kwargs.items():
|
||||
@@ -57,6 +59,8 @@ class VbanCmd(metaclass=ABCMeta):
|
||||
self.updater = Updater(self)
|
||||
self.updater.start()
|
||||
|
||||
self.logger.info(f"{type(self).__name__}: Successfully logged into {self}")
|
||||
|
||||
def _set_rt(
|
||||
self,
|
||||
id_: str,
|
||||
|
||||
Reference in New Issue
Block a user