Debug log the raw Zaqar message
Currently we have no record of this, it would be useful to include it when --debug is used on a CLI command. Closes-Bug: #1776874 Change-Id: Iec3267423594db838a5c8c0624aaae23aab0f488
This commit is contained in:
@@ -146,7 +146,9 @@ class WebsocketClient(object):
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
yield self.recv()['body']['payload']
|
message = self.recv()
|
||||||
|
LOG.debug(message)
|
||||||
|
yield message['body']['payload']
|
||||||
except websocket.WebSocketTimeoutException:
|
except websocket.WebSocketTimeoutException:
|
||||||
raise exceptions.WebSocketTimeout()
|
raise exceptions.WebSocketTimeout()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user