From 0bf5d92f1af7374b887e28b5665d8ce57617fde0 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Wed, 3 Apr 2024 23:16:30 -0600 Subject: [PATCH] fix strings copied from other project --- exporter/callbacks.py | 2 +- exporter/matrix.py | 4 ++-- main.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/callbacks.py b/exporter/callbacks.py index 295e91a..2996ef3 100644 --- a/exporter/callbacks.py +++ b/exporter/callbacks.py @@ -42,7 +42,7 @@ class MatrixBotCallbacks: def __init__(self, client: AsyncClient, config: dict): self.client = client self.config = config - self.logger = logging.getLogger('MatrixGPT').getChild('MatrixBotCallbacks') + self.logger = logging.getLogger('ExportBot').getChild('MatrixBotCallbacks') self.startup_ts = time.time() * 1000 self.seen_events = {} self.exports = ExportTracker() diff --git a/exporter/matrix.py b/exporter/matrix.py index b516816..908f141 100644 --- a/exporter/matrix.py +++ b/exporter/matrix.py @@ -15,7 +15,7 @@ class MatrixClientHelper: # Encryption is disabled because it's handled by Pantalaimon. client_config = AsyncClientConfig(max_limit_exceeded=0, max_timeouts=0, store_sync_tokens=True, encryption_enabled=False) - def __init__(self, user_id: str, passwd: str, homeserver: str, store_path: str, device_name: str = 'MatrixGPT'): + def __init__(self, user_id: str, passwd: str, homeserver: str, store_path: str, device_name: str = 'ExportBot'): self.user_id = user_id self.passwd = passwd @@ -29,7 +29,7 @@ class MatrixClientHelper: self.device_name = device_name self.client = AsyncClient(homeserver=self.homeserver, user=self.user_id, config=self.client_config, device_id=device_name) - self.logger = logging.getLogger('MatrixGPT').getChild('MatrixClientHelper') + self.logger = logging.getLogger('ExportBot').getChild('MatrixClientHelper') async def login(self) -> tuple[bool, LoginError] | tuple[bool, LoginResponse | None]: try: diff --git a/main.py b/main.py index fc1cb3b..9015575 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__)) async def main(args): logging.basicConfig() - logger = logging.getLogger('MatrixGPT') + logger = logging.getLogger('ExportBot') with open(args.config) as stream: try: