summaryrefslogtreecommitdiff
path: root/nova/console
diff options
context:
space:
mode:
authorjichenjc <jichenjc@cn.ibm.com>2015-01-07 08:37:40 +0800
committerjichenjc <jichenjc@cn.ibm.com>2015-01-07 08:38:34 +0800
commit95cc571b29d4e619f5f540ffa998be35dad41c5f (patch)
tree47dc06f55bf974859a3fe8a14f9ff6e02bf3e0c6 /nova/console
parent6339f079385110b58e2e28404f64d1d94b56c7bd (diff)
downloadnova-95cc571b29d4e619f5f540ffa998be35dad41c5f.tar.gz
Make LOG exception use format_message
format_message is recommended to be used for LOG exception, SocketPortInUseException is a nova exception and have format_message function, so it should be used. Change-Id: I978c1a905f46347793e3025227c0c22b44a8a82f
Diffstat (limited to 'nova/console')
-rw-r--r--nova/console/serial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/console/serial.py b/nova/console/serial.py
index 3b4c6a37fe..9370e367d9 100644
--- a/nova/console/serial.py
+++ b/nova/console/serial.py
@@ -77,7 +77,7 @@ def acquire_port(host):
ALLOCATED_PORTS.add((host, port))
return port
except exception.SocketPortInUseException as e:
- LOG.warn(e)
+ LOG.warn(e.format_message())
raise exception.SocketPortRangeExhaustedException(host=host)