diff options
author | Devaev Maxim <[email protected]> | 2020-03-20 15:45:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-03-20 15:45:02 +0300 |
commit | f85ee6b4bfe265a4490ed4dac2da1d88c88bed32 (patch) | |
tree | 39525393d72feee951ddd0b1580b34d04f1f002b /kvmd | |
parent | 3cafcaf4314e9a8fe66219d72ed4ae99abc04ab1 (diff) |
report about vnc client features
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/vnc/rfb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/apps/vnc/rfb.py b/kvmd/apps/vnc/rfb.py index 08c68a4c..95366ed1 100644 --- a/kvmd/apps/vnc/rfb.py +++ b/kvmd/apps/vnc/rfb.py @@ -316,6 +316,8 @@ class RfbClient: # pylint: disable=too-many-instance-attributes # ===== async def __main_loop(self) -> None: + logger = get_logger(0) + while True: msg_type = await self.__read_number("B") @@ -331,6 +333,8 @@ class RfbClient: # pylint: disable=too-many-instance-attributes if encodings_count > 1024: raise RfbError(f"Too many encodings: {encodings_count}") self._encodings = _Encodings(frozenset(await self.__read_struct("l" * encodings_count))) + logger.info("[main] Client %s: Features: resize=%d; rename=%d; leds=%d", + self._remote, self._encodings.has_resize, self._encodings.has_rename, self._encodings.has_leds_state) self.__check_tight_jpeg() await self._on_set_encodings() |