From 754adc4b7eafa6ef0da7b0d2f5e5f304f436d022 Mon Sep 17 00:00:00 2001 From: xhzhf Date: Thu, 11 Aug 2016 10:04:03 +0800 Subject: [PATCH] [vncproxy] log for closing web is misleading When user close console web, log will record "Target closed vmsg". In fact, Target is not closed, webclient is closed Change-Id: I7bb53c38c4969eee7cf1d2ee346797d31c8b2d6a Closes-Bug: #1596873 --- nova/console/websocketproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/console/websocketproxy.py b/nova/console/websocketproxy.py index f7104f79652e..6a7b1ec71039 100644 --- a/nova/console/websocketproxy.py +++ b/nova/console/websocketproxy.py @@ -153,7 +153,8 @@ class NovaProxyRequestHandlerBase(object): if tsock: tsock.shutdown(socket.SHUT_RDWR) tsock.close() - self.vmsg(_("%(host)s:%(port)s: Target closed") % + self.vmsg(_("%(host)s:%(port)s: " + "Websocket client or target closed") % {'host': host, 'port': port}) raise