diff options
author | Devaev Maxim <[email protected]> | 2021-01-23 07:00:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-01-23 07:00:49 +0300 |
commit | 4d4fb69d2eb2e9b3d677b82098d888bd899c8c33 (patch) | |
tree | c193f2a0db5fb34f5f58bd96d6ccd771177b1753 /kvmd/apps/vnc/server.py | |
parent | ebe40697a5935d5d35a36d0825715ca8c3824c6a (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/vnc/server.py')
-rw-r--r-- | kvmd/apps/vnc/server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py index 14617311..d00360a6 100644 --- a/kvmd/apps/vnc/server.py +++ b/kvmd/apps/vnc/server.py @@ -50,6 +50,8 @@ from ...clients.streamer import BaseStreamerClient from ...clients.streamer import StreamerHttpClient from ...clients.streamer import StreamerMemsinkClient +from ... import tools + from .rfb import RfbClient from .rfb.stream import rfb_format_remote from .rfb.stream import rfb_close_writer @@ -397,7 +399,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes async with kvmd.make_session("", "") as kvmd_session: none_auth_only = await kvmd_session.auth.check() except (aiohttp.ClientError, asyncio.TimeoutError) as err: - logger.error("[entry] %s: Can't check KVMD auth mode: %s: %s", remote, type(err).__name__, err) + logger.error("[entry] %s: Can't check KVMD auth mode: %s", remote, tools.efmt(err)) return await _Client( |