diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-02 13:36:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-02 13:36:12 +0000 |
| commit | 0ae8a9a7e7b0dce76b3530b99ce881da8285a0ce (patch) | |
| tree | fdf493c854e6f412bd162c2c5ac7d4eff91b7c49 /nova/utils.py | |
| parent | 4b6fa4afce524031c7e43936d6195da5fdd7ea65 (diff) | |
| parent | 994c69ac9e6a6758bc4e18ea6204ae29cbd05080 (diff) | |
Merge "Remove print statements"
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: |
