better logging prefixes

This commit is contained in:
əlemi 2021-12-07 17:24:26 +01:00
parent b5c3bfeb6c
commit 4c69fc4080
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ class MinecraftClient(CallbacksHolder, Runnable):
self._processing = False self._processing = False
self._authenticated = False self._authenticated = False
self._logger = LOGGER.getChild(f"{self.host}:{self.port}") self._logger = LOGGER.getChild(f"on({self.host}:{self.port})")
@property @property
def started(self) -> bool: def started(self) -> bool:

View file

@ -92,7 +92,7 @@ class Dispatcher:
def _prepare(self, host:Optional[str] = None, port:Optional[int] = None, queue_timeout:int = 1, queue_size:int = 100): def _prepare(self, host:Optional[str] = None, port:Optional[int] = None, queue_timeout:int = 1, queue_size:int = 100):
self._host = host or self._host or "localhost" self._host = host or self._host or "localhost"
self._port = port or self._port or 25565 self._port = port or self._port or 25565
self._logger = LOGGER.getChild(f"@({self._host}:{self._port})") self._logger = LOGGER.getChild(f"on({self._host}:{self._port})")
self.encryption = False self.encryption = False
self.compression = None self.compression = None