diff options
author | Maxim Devaev <[email protected]> | 2022-07-19 16:00:01 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-19 16:00:01 +0300 |
commit | 54cb5e1fed2ad2e0f291adcc6738659fd15dc452 (patch) | |
tree | dd6e6fa0fda253765bd0be1bdbedbd39becdd817 /kvmd/apps/vnc/rfb/__init__.py | |
parent | 01ac7522dbeb542db672f087a4a35ac463e8f0ee (diff) |
verbose rfb encdings report
Diffstat (limited to 'kvmd/apps/vnc/rfb/__init__.py')
-rw-r--r-- | kvmd/apps/vnc/rfb/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kvmd/apps/vnc/rfb/__init__.py b/kvmd/apps/vnc/rfb/__init__.py index e7adfbce..0aa13114 100644 --- a/kvmd/apps/vnc/rfb/__init__.py +++ b/kvmd/apps/vnc/rfb/__init__.py @@ -22,7 +22,6 @@ import asyncio import ssl -import dataclasses from typing import Tuple from typing import List @@ -423,9 +422,9 @@ class RfbClient(RfbClientStream): # pylint: disable=too-many-instance-attribute raise RfbError(f"Too many encodings: {encodings_count}") self._encodings = RfbClientEncodings(frozenset(await self._read_struct("encodings list", "l" * encodings_count))) - logger.info("[main] %s: Client features (SetEncodings): ...", self._remote) - for (key, value) in dataclasses.asdict(self._encodings).items(): - logger.info("[main] %s: ... %s=%s", self._remote, key, value) + logger.info("[main] %s: Client features (SetEncodings):", self._remote) + for item in self._encodings.get_summary(): + logger.info("[main] %s: ... %s", self._remote, item) self.__check_tight_jpeg() if self._encodings.has_ext_keys: # Preferred method |