summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-03-20 15:45:02 +0300
committerDevaev Maxim <[email protected]>2020-03-20 15:45:02 +0300
commitf85ee6b4bfe265a4490ed4dac2da1d88c88bed32 (patch)
tree39525393d72feee951ddd0b1580b34d04f1f002b
parent3cafcaf4314e9a8fe66219d72ed4ae99abc04ab1 (diff)
report about vnc client features
-rw-r--r--kvmd/apps/vnc/rfb.py4
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()