diff options
author | Arata Notsu <notsu@virtualtech.jp> | 2013-04-02 10:45:45 +0900 |
---|---|---|
committer | Arata Notsu <notsu@virtualtech.jp> | 2013-04-02 10:53:14 +0900 |
commit | 994c69ac9e6a6758bc4e18ea6204ae29cbd05080 (patch) | |
tree | ce49ab4b02e16f196821eed82ef650d426ba0372 /nova/utils.py | |
parent | 3b428d80286d1b8b7f626663f7f66097c06cce4c (diff) | |
download | nova-994c69ac9e6a6758bc4e18ea6204ae29cbd05080.tar.gz nova-994c69ac9e6a6758bc4e18ea6204ae29cbd05080.tar.xz nova-994c69ac9e6a6758bc4e18ea6204ae29cbd05080.zip |
Remove print statements
Change-Id: I40a805bee3f10d5989188971423cbb6c07f740c8
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/utils.py b/nova/utils.py index dbbbd1eb6..7a586c322 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -142,7 +142,8 @@ def vpn_ping(address, port, timeout=0.05, session_id=None): sock.close() fmt = '!BQxxxxxQxxxx' if len(received) != struct.calcsize(fmt): - print struct.calcsize(fmt) + LOG.warn(_('Expected to receive %(exp)s bytes, but actually %(act)s') % + dict(exp=struct.calcsize(fmt), act=len(received))) return False (identifier, server_sess, client_sess) = struct.unpack(fmt, received) if identifier == 0x40 and client_sess == session_id: |