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:
Dougal Matthews 2018-06-14 10:53:59 +01:00
parent 27856e8e62
commit 658abc2bb8
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ class WebsocketClient(object):
while True:
try:
yield self.recv()['body']['payload']
message = self.recv()
LOG.debug(message)
yield message['body']['payload']
except websocket.WebSocketTimeoutException:
raise exceptions.WebSocketTimeout()